Description
The regcomp implementation in the GNU C Library (aka glibc or libc6) through 2.11.3, and 2.12.x through 2.12.2, allows context-dependent attackers to cause a denial of service (application crash) via a regular expression containing adjacent bounded repetitions that bypass the intended RE_DUP_MAX limitation, as demonstrated by a {10,}{10,}{10,}{10,}{10,} sequence in the proftpd.gnu.c exploit for ProFTPD, related to a "RE_DUP_MAX overflow."
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | glibc | 2.19-4 | — |
| Debian 13 | glibc | 2.19-4 | — |
| Debian 12 | glibc | 2.19-4 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- GNU libc/regcomp(3) - Multiple Vulnerabilities EDB-15935 · dos · Jan 7, 2011
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 42547 third-party-advisory
- 1024832 vdb-entry
- 20110107 GNU libc/regcomp(3) Multiple Vulnerabilities mailing-list
- VU#912279 third-party-advisory
- 45233 vdb-entry
- 20110107 GNU libc/regcomp(3) Multiple Vulnerabilities mailing-list
- http://cxib.net/stuff/proftpd.gnu.c
- 15935 exploit
- 8003 third-party-advisory
- 20110107 GNU libc/regcomp(3) Multiple Vulnerabilities third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=645859
- [guacamole-issues] 20210618 [jira] [Created] (GUACAMOLE-1368) Latest docker image fails security scans. mailing-list