Servers and applications
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…
- Severity
- High 7.5
- Published
- 20 Apr 2026
- Last changed
- 11 Nov 2026
- Added to UpHeron
- 1 Nov 2026
- Exploit chance
- 0.4% in the next 30 daysHigher than 32% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- CWE-127
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Sources
- NVD
Description
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.
Affected software
| Software | Affected versions |
|---|---|
GNU C LibraryServers and applications · cpe:a:gnu:glibc |
|
About GNU C Library
GNU Project's implementation of the C standard library
- Developer
- GNU ProjectWikidata
- License
- GNU Lesser General Public License, version 2.1 or laterWikidata
- Written in
- CWikidata
- First released
- 1987Wikidata
Vulnerabilities in GNU C Library
- In our list
- 167
- Published in the last 12 months
- 19
- Critical, last 12 months
- 1
- High, last 12 months
- 8
- Known exploited
- 1
- CVE-2026-126765Double free after allocation failure in globLow 3.7 19 Nov 2026
- CVE-2026-124024IBM1390/IBM1399 encoders may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-121758ISO-2022-CN-EXT decoder may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-121757CP949 decoder may read past inputMedium 5.9 17 Nov 2026
- CVE-2026-100290Double free after allocation failure in regcomp and regexecLow 3.7 11 Nov 2026
- CVE-2026-115819One-byte buffer overflow in wide scanf %s and %[ conversionsMedium 4.8 11 Nov 2026