9.8critical
scanf %mc off-by-one heap buffer overflow
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.51% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- glibc
Description
Calling the scanf family of functions with a %mc (malloc'd character match) in the GNU C Library version 2.7 to version 2.43 with a format width specifier with an explicit width greater than 1024 could result in a one byte heap buffer overflow.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| The GNU C Library glibc | from 2.7 before * | CVE List |
| gnu glibc | from 2.7 up to 2.43 | NVD |
Classification
What each source says
CVE List
Calling the scanf family of functions with a %mc (malloc'd character match) in the GNU C Library version 2.7 to version 2.43 with a format width specifier with an explicit width greater than 1024 could result in a one byte heap buffer overflow.
NVD (es)
Al llamar a la familia de funciones scanf con un %mc (coincidencia de carácter asignado con malloc) en la biblioteca C de GNU, versiones 2.7 a 2.43, con un especificador de ancho de formato con un ancho explícito mayor que 1024, podría resultar en un desbordamiento de búfer de montón de un byte.
References
| https://sourceware.org/bugzilla/show_bug.cgi?id=CVE-2026-5450 | exploit, issue-tracking | |
| https://inbox.sourceware.org/libc-announce/b11f0003-6ec1-4bd6-b9de-9e38a4efeca3@redhat.com/T/#u | mailing-list, third-party-advisory | |
| https://cert-portal.siemens.com/productcert/html/ssa-082556.html | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-5450 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2026-5450 changed 2026-11-11 | Public domain |