All reports
Medium

glibc: glibc: Heap Buffer Overflow in `scanf` with `%mc` format specifier and large width

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-5450

Probability of exploitation in the next 30 days: 0.51%

FIRST EPSS · 2026-11-22

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.

A flaw was found in glibc (GNU C Library). This vulnerability occurs when an application uses the scanf family of functions with a %mc format specifier, which is used for dynamically allocating memory for character input, and provides an explicit width greater than 1024. This specific combination can lead to a one-byte heap buffer overflow, potentially allowing an attacker to corrupt memory.