CVE-2026-5450 PUBLISHED

scanf %mc off-by-one heap buffer overflow

Assigner: glibc
Reserved: 02.04.2026 Published: 20.04.2026 Updated: 20.04.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.

Product Status

Vendor The GNU C Library
Product glibc
Versions Default: unaffected
  • affected from 2.7 to * (excl.)

Credits

  • Rocket Ma finder

References

Problem Types

  • CWE-122 Heap-based buffer overflow CWE

Impacts

  • CAPEC-100 Overflow Buffers