Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-84691

Invalid memory access on Dnsconfd DBUS error [rhel-10.0.z]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • NetworkManager-1.52.0-3.el10_0
    • No
    • Moderate
    • 0day
    • rhel-net-mgmt
    • ssg_networking
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Hide

      Definition of Done:

      Please mark each item below with ( / ) if completed or ( x ) if incomplete:

      ( ) The acceptance criteria defined below are met.

      None


      ( ) Code changes are included in a downstream build attached to an errata.


      ( ) All required testing (manual and/or automated) passes successfully.


      ( ) Related documentation updates (if applicable) have been completed.

      Show
      Definition of Done: Please mark each item below with ( / ) if completed or ( x ) if incomplete: ( ) The acceptance criteria defined below are met. None ( ) Code changes are included in a downstream build attached to an errata. ( ) All required testing (manual and/or automated) passes successfully. ( ) Related documentation updates (if applicable) have been completed.
    • Pass
    • Automated
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This is a clone of issue RHEL-83175 to use for version rhel-10.0.z

      Original description:

      What were you trying to do that didn't work?

      Dnsconfd dns plugin does not check DBus failures properly. Leading to SIGSEGVs. This error manifests itself on other Dnsconfd issue, for example bad polkit policy.

      What is the impact of this issue to you?

      Bad state of NetworkManager

      Please provide the package NVR for which the bug is seen:

      NetworkManager-1.52.0-1

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Use dnsconfd dns plugin
      2. Remove for example polkit policy of Dnsconfd so it is not able to start Unbound
      3. Stop dnsconfd
      4. nmcli g reload

      Expected results

      No coredumps.

      Actual results

      Feb 26 19:00:08 localhost.localdomain NetworkManager[873]: <debug> [1740592808.9344] dnsconfd: D-Bus name for dnsconfd disappeared
      Feb 26 19:00:08 localhost.localdomain NetworkManager[873]: <warn> [1740592808.9344] dnsconfd: dnsconfd update failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Remote peer disconnected
      Feb 26 19:00:08 localhost.localdomain NetworkManager[873]: g_variant_get: assertion 'value != NULL' failed
      Feb 26 19:00:09 localhost.localdomain systemd-coredump[1186]: Process 873 (NetworkManager) of user 0 dumped core.

      Stack trace of thread 873:
      #0 0x00007f44618af727 g_logv (libglib-2.0.so.0 + 0x5a727)
      #1 0x00007f44618af9e3 g_log (libglib-2.0.so.0 + 0x5a9e3)
      #2 0x00007f44618f4caa g_variant_get (libglib-2.0.so.0 + 0x9fcaa)
      #3 0x000055b927f1047b dnsconfd_update_done (NetworkManager + 0x1b647b)
      #4 0x00007f4461a9848a g_task_return_now (libgio-2.0.so.0 + 0xaf48a)
      #5 0x00007f4461a9868b g_task_return (libgio-2.0.so.0 + 0xaf68b)
      #6 0x00007f4461af8bc4 g_dbus_connection_call_done (libgio-2.0.so.0 + 0x10fbc4)
      #7 0x00007f4461a9848a g_task_return_now (libgio-2.0.so.0 + 0xaf48a)
      #8 0x00007f4461a984cd complete_in_idle_cb (libgio-2.0.so.0 + 0xaf4cd)
      #9 0x00007f44618a647b g_idle_dispatch (libglib-2.0.so.0 + 0x5147b)
      #10 0x00007f44618a9f4f g_main_context_dispatch (libglib-2.0.so.0 + 0x54f4f)
      #11 0x00007f44618ff268 g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xaa268)
      #12 0x00007f44618a95a3 g_main_loop_run (libglib-2.0.so.0 + 0x545a3)
      #13 0x000055b927dae341 main (NetworkManager + 0x54341)
      #14 0x00007f44612015d0 __libc_start_call_main (libc.so.6 + 0x295d0)
      #15 0x00007f4461201680 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29680)
      #16 0x000055b927dae875 _start (NetworkManager + 0x54875)

      Stack trace of thread 890:
      #0 0x00007f44612d9e3f __poll (libc.so.6 + 0x101e3f)
      #1 0x00007f44618ff1fc g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xaa1fc)
      #2 0x00007f44618a7713 g_main_context_iteration (libglib-2.0.so.0 + 0x52713)
      #3 0x00007f44618a7761 glib_worker_main (libglib-2.0.so.0 + 0x52761)
      #4 0x00007f44618d8762 g_thread_proxy (libglib-2.0.so.0 + 0x83762)
      #5 0x00007f4461262002 start_thread (libc.so.6 + 0x8a002)
      #6 0x00007f44612e7070 __clone3 (libc.so.6 + 0x10f070)

      Stack trace of thread 892:
      #0 0x00007f44612df56d syscall (libc.so.6 + 0x10756d)
      #1 0x00007f44618f8d4c g_cond_wait_until (libglib-2.0.so.0 + 0xa3d4c)
      #2 0x00007f446187a091 g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0x25091)
      #3 0x00007f44618db7aa g_thread_pool_thread_proxy.lto_priv.0 (libglib-2.0.so.0 + 0x867aa)
      #4 0x00007f44618d8762 g_thread_proxy (libglib-2.0.so.0 + 0x83762)
      #5 0x00007f4461262002 start_thread (libc.so.6 + 0x8a002)
      #6 0x00007f44612e7070 __clone3 (libc.so.6 + 0x10f070)

      Stack trace of thread 891:
      #0 0x00007f44612d9e3f __poll (libc.so.6 + 0x101e3f)
      #1 0x00007f44618ff1fc g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0xaa1fc)
      #2 0x00007f44618a95a3 g_main_loop_run (libglib-2.0.so.0 + 0x545a3)
      #3 0x00007f4461afb46a gdbus_shared_thread_func.lto_priv.0 (libgio-2.0.so.0 + 0x11246a)
      #4 0x00007f44618d8762 g_thread_proxy (libglib-2.0.so.0 + 0x83762)
      #5 0x00007f4461262002 start_thread (libc.so.6 + 0x8a002)
      #6 0x00007f44612e7070 __clone3 (libc.so.6 + 0x10f070)
      ELF object binary architecture: AMD x86-64

      Upstream MR:

      https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2161

              rhn-engineering-vbenes Vladimir Benes
              watson-automation Watson Automation
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: