[PATCH] posix: Fix double free after allocation failure in regcomp and regexec (BZ 34991, CVE-2026-100290)

Paul Eggert eggert@cs.ucla.edu
Thu Nov 12 01:05:03 GMT 2026


Thanks, I reviewed the changes to posix/regcomp.c, posix/regex_internal.c, and posix/regexec.c and they all look good. I did not review the test case.

I propagated those fixes into Gnulib by installing the attached patches. In hindsight I should have merged them into one Gnulib patch but two patches suffice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-regex-fix-double-frees.patch
Type: text/x-patch
Size: 2742 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20261111/328f8a53/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-regex-fix-another-build_range_exp-double-free.patch
Type: text/x-patch
Size: 1523 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20261111/328f8a53/attachment-0001.bin>


More information about the Libc-alpha mailing list