CVE-2026-5928
Calling the ungetwc function on a FILE stream with wide characters encoded in a character set that has overlaps between its single byte and multi-byte character encodings, in the GNU C Library version 2.43 or earlier, may result in an attempt to read bytes before an allocated buffer, potentially resulting in unintentional disclosure of neighboring data in the heap, or a program crash. A bug in the wide character pushback implementation (_IO_wdefault_pbackfail in libio/wgenops.c) causes ungetwc() to operate on the regular character buffer (fp->_IO_read_ptr) instead of the actual wide-stream read pointer (fp->_wide_data->_IO_read_ptr). The program crash may happen in cases where fp->_IO_read_ptr is not initialized and hence points to NULL. The buffer under-read requires a special situation where the input character encoding is such that there are overlaps between single byte representations and multibyte representations in that encoding, resulting in spurious matches. The spurious match case is not possible in the standard Unicode character sets.
Scoring
- CVSS base score
- 0.02
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS probability
- 0.37%
- CWE
- CWE-127
- Published
- 2026-04-20
- Last modified
- 2026-07-14
Affected products
- The GNU C Library glibc
Weakness type
Related vulnerabilities
- CVE-2026-45683 — OpenTelemetry eBPF Instrumentation: Java TLS ioctl kprobe allows kernel memory disclosure
- CVE-2025-20359 — Multiple Cisco Products Snort 3 MIME Information Disclosure or Denial of Service Vulnerability
- CVE-2025-32050 — Libsoup: integer overflow in append_param_quoted
- CVE-2024-10395 — net: lib: http_server: Buffer Under-read
- CVE-2024-25629 — c-ares out of bounds read in ares__read_line()
- CVE-2020-1918 — In-memory file operations (ie: using fopen on a data URI) did not properly restrict negative...
- CVE-2020-5360 — Dell BSAFE Micro Edition Suite, versions prior to 4.5, are vulnerable to a Buffer Under-Read...