RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2039331 - libnm: dangling pointer while destroying NMClient (or removing object from D-Bus) can lead to crash
Summary: libnm: dangling pointer while destroying NMClient (or removing object from D-...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Haller
QA Contact: Filip Pokryvka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-11 13:59 UTC by Thomas Haller
Modified: 2022-05-10 15:33 UTC (History)
7 users (show)

Fixed In Version: NetworkManager-1.36.0-0.7.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 14:55:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-107423 0 None None None 2022-01-11 14:11:41 UTC
Red Hat Product Errata RHEA-2022:1985 0 None None None 2022-05-10 14:55:37 UTC
freedesktop.org Gitlab NetworkManager NetworkManager issues 896 0 None closed libnm: dangling pointer while destroying NMClient (or removing object from D-Bus) 2022-01-21 12:46:51 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1075 0 None opened [th/libnm-dangling-property-2] libnm: fix dangling pointer in "o" properties when unregistering NMObject 2022-01-28 08:18:45 UTC

Description Thomas Haller 2022-01-11 13:59:04 UTC
Upstream reported here: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/896

libnm can expose dangling pointers, which can cause crashes (in users that access them).

Comment 1 Beniamino Galvani 2022-01-24 10:21:58 UTC
I could reproduce using the NM binary at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/896 :

    ./gnome-control-center

   ** (gnome-control-center:3687221): WARNING **: 11:16:54.612: Ignoring broken panel privacy (missing desktop file)
   **
   nm:ERROR:../src/libnm-client-impl/nm-device.c:1730:nm_device_get_active_connection: assertion failed: (!ac || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((ac)); GType __t = ((nm_active_connection_get_type())); gboole\
an __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; })))))
   Bail out! nm:ERROR:../src/libnm-client-impl/nm-device.c:1730:nm_device_get_active_connection: assertion failed: (!ac || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((ac)); GType __t = ((nm_active_connection_get_type()\
)); gboolean __r; if (!__inst) __r = (0); else if (__inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; })))))
   Aborted (core dumped)


The crash doesn't happen with the patch.

Comment 5 Filip Pokryvka 2022-02-17 11:05:43 UTC
Covered in unit tests.

Comment 8 errata-xmlrpc 2022-05-10 14:55:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (NetworkManager bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:1985


Note You need to log in before you can comment on or make changes to this bug.