The regcomp function in the GNU C library version from 2.4 to 2.41 is subject to a double free if some previous allocation fails. It can be accomplished either by a malloc failure or by using an interposed malloc that injects random malloc failures. The double free can allow buffer manipulation depending of how the regex is constructed. This issue affects all architectures and ABIs supported by the GNU C library.
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2025:12748 https://access.redhat.com/errata/RHSA-2025:12748
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2025:12980 https://access.redhat.com/errata/RHSA-2025:12980
This issue has been addressed in the following products: Red Hat Enterprise Linux 10 Via RHSA-2025:13240 https://access.redhat.com/errata/RHSA-2025:13240