## The patch (upstream commit c82b4ed4, to cherry-pick onto 50.2)
--- a/src/grd-daemon-system.c
+++ b/src/grd-daemon-system.c
@@ -323,8 +323,6 @@ on_handle_start_handover
(GrdDBusRemoteDesktopRdpHandover *interface,
g_autofree char *key = NULL;
g_autofree char *certificate = NULL;
g_autofree char *routing_token = NULL;
- g_autoptr (GVariant) redirect_variant = NULL;
- GDBusConnection *connection;
const char *sender;
g_assert (interface == remote_client->handover_dst->interface);
@@ -358,6 +356,9 @@ on_handle_start_handover
(GrdDBusRemoteDesktopRdpHandover *interface,
}
else
{
+ GDBusConnection *connection;
+ GVariant *redirect_variant;
+
connection = g_dbus_interface_skeleton_get_connection (
G_DBUS_INTERFACE_SKELETON (
remote_client->handover_src->interface));
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2174636
Title:
gnome-remote-desktop system daemon double-unrefs a floating GVariant
during handover (double-free / use-after-free on every greeter→session
login)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-remote-desktop/+bug/2174636/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs