CVE-2026-5450
scanf %mc off-by-one heap buffer overflow
- Severity
- critical CVSS 9.8 (v3.1)
- Affects
- glibc · The GNU C Library
- Weakness
- CWE-122 Heap-based buffer overflow
- Published
- 20 April 2026 by glibc
- First seen on our lists
- 23 July 2026
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.
Our coverage
- glibc 2.40 backport plugs one-byte scanf %mc overflow
- glibc fixes one-byte overflow in scanf %mc allocation
On the lists
- [committed] advisories: Fix up some formatting nits
- [PATCH 2.39 v2 0/4] Backport %mc fixes to 2.39
- [PATCH 2.40 1/4] stdio-common: Fix buffer overflow in scanf %mc [BZ #34008]
- [PATCH 2.40 0/4] Backport %mc fixes to 2.40
- [PATCH 2.39] stdio-common: Fix buffer overflow in scanf %mc [BZ #34008]