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

kdb: prevent double crash in RBCD ACL free

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

    • ipa-4.12.2-20.el9
    • No
    • Important
    • 2
    • rhel-idm-ipa
    • 25
    • 27
    • 2
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • 2025-IDM-IPA-S1, 2025-IDM-IPA-S2
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      acl_list was set to prev->tl_data_contents and its value is freed but then is is freed again outside of the if(). Just reset acl_list pointer as prev->tl_data_contents is removed unconditionally outside of the RBCD ACL removal.

       

      This can be reproduced by setting an RBCD ACL on a principal and then running kadmin.local getprincs:

       

       

      # kinit admin
      # ipa service-add cifs/server.ipa.test
      # kadmin.local getprincs
      double free or corruption (fasttop)
      Aborted (core dumped)
      #

       

       

              frenaud@redhat.com Florence Renaud
              frenaud@redhat.com Florence Renaud
              Florence Renaud Florence Renaud
              Sudhir Menon Sudhir Menon
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: