CVE-2026-5450

scanf %mc off-by-one heap buffer overflow

State
Published
Severity
9.8 Critical
Published
Apr 20, 2026
Updated
Oct 15, 2026
Reserved
Apr 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

Affected Products

ProductVersions
glibcThe GNU C Library
  • 2.7 and laterAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.