{"id":"CVE-2026-5928","aliases":["CVE-2026-5928"],"related":[],"kind":"vulnerability","state":"published","title":"Potential buffer under-read in ungetwc","summary":"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.\n\nA 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nA 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.","source":"cvelist"},{"lang":"es","text":"Llamar a la función ungetwc en un flujo FILE con caracteres anchos codificados en un conjunto de caracteres que tiene solapamientos entre sus codificaciones de caracteres de un solo byte y de múltiples bytes, en la biblioteca GNU C versión 2.43 o anterior, puede resultar en un intento de leer bytes antes de un búfer asignado, lo que podría resultar en la divulgación no intencionada de datos adyacentes en el montón, o un fallo del programa.\n\nUn error en la implementación de retroceso de caracteres anchos (_IO_wdefault_pbackfail en libio/wgenops.c) hace que ungetwc() opere en el búfer de caracteres regular (fp  ->  _IO_read_ptr) en lugar del puntero de lectura real del flujo ancho (fp  ->  _wide_data  ->  _IO_read_ptr). El fallo del programa puede ocurrir en casos donde fp  ->  _IO_read_ptr no está inicializado y por lo tanto apunta a NULL. La lectura insuficiente del búfer requiere una situación especial donde la codificación de caracteres de entrada es tal que hay solapamientos entre representaciones de un solo byte y representaciones de múltiples bytes en esa codificación, lo que resulta en coincidencias espurias. El caso de coincidencia espuria no es posible en los conjuntos de caracteres Unicode estándar.","source":"nvd"}],"published":"2026-04-20T20:37:31.743Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-127"],"affected":[{"ranges":[{"type":"custom","introduced":"2.1.1-89","lastAffected":"2.43","status":"affected"}],"vendor":"The GNU C Library","product":"glibc","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.43"}],"vendor":"gnu","product":"glibc","cpe":"cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=33998","tags":["exploit","issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Rocket Ma"],"assigner":"glibc","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-04-21T16:10:57.731Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5928","url":"https://www.cve.org/CVERecord?id=CVE-2026-5928","licence":"CVE Terms of Use","modified":"2026-10-15T01:12:14.900Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5928","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5928","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.066Z","epss":{"score":0.00376,"percentile":0.33624,"date":"2026-12-01T12:00:22.000Z"}}