GNU C Library Buffer Under-read Vulnerability in Wide Character Handling

Vulnerability

A vulnerability exists in the GNU C Library (glibc) in versions through 2.43, where the ungetwc function can be misused on FILE streams containing wide characters. This issue arises with character encodings that overlap single-byte and multi-byte representations, leading to potential buffer under-reads. The flaw is caused by a bug in the wide character pushback implementation, which incorrectly uses the regular character buffer instead of the wide-stream read pointer. As a result, there may be an attempt to read bytes before an allocated buffer, unintentionally disclosing neighboring heap data or causing a program crash.

Impact

Exploitation of this vulnerability can lead to a buffer under-read, allowing for the unintended disclosure of adjacent heap data, or causing a program crash. The under-read requires a specific encoding condition where single-byte and multi-byte representations overlap, creating false matches.

Added: Apr 20, 2026, 9:20 PM
Updated: Apr 20, 2026, 9:20 PM

Vulnerability Rating

Custom Algorithm
spread
6.6
impact
2.5
exploitability
4.3
remediation
0.0
relevance
6.3
threat
0.0
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.