CVE-2026-5928: Potential buffer under-read in ungetwc

Published Apr 20, 2026
·
Updated

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.

Other sources

Static buffer overflow in deprecated nislocalprincipal

— Microsoft

Affected Software

15 affected componentsFixes available
GNU GNU C Library<=2.43
IBM Cloud Pak for Data System (Yosemite 1.0)<=11.3.1.2-IF1 - 11.3.1.2-IF2
GNU glibc<=2.43
debian/glibc*
debian/glibc<2.41-12+deb13u4
2.41-12+deb13u4
debian/glibc<2.42-17
2.42-17
debian/glibc<=2.36-9+deb12u14, <=2.36-9+deb12u7
2.41-12+deb13u42.42-17
ubuntu/eglibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc<2.35-0ubuntu3.14
2.35-0ubuntu3.14
ubuntu/glibc<2.39-0ubuntu8.8
2.39-0ubuntu8.8
ubuntu/glibc*
ubuntu/glibc<2.43-2ubuntu2.3
2.43-2ubuntu2.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.41-12+deb13u4
  2. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.42-17
  3. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.41-12+deb13u4Fixed in 2.42-17
  4. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.35-0ubuntu3.14
  5. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.39-0ubuntu8.8
  6. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.43-2ubuntu2.3
  7. Upgrade

    Upgrade GNU C Library (glibc) to a version that resolves this vulnerability.

    Fixed in 2.43Patch Potential buffer under-read in ungetwc
  8. Compensating control

    Avoid calling ungetwc() on FILE streams with wide characters when using character sets where single-byte and multi-byte encodings overlap (the under-read requires this special overlap/spurious match situation).

  9. Operational

    Ensure the wide-stream read pointer is properly initialized before calling ungetwc(); specifically avoid cases where fp->_IO_read_ptr is not initialized (NULL) or where the wide-stream pointer (fp->_wide_data->_IO_read_ptr) is not set as expected.

Event History

Apr 20, 2026
CVE Published
via MITRE·08:37 PM
Data Sourced
via MITRE·08:37 PM
DescriptionWeakness
Data Sourced
via OSV·08:37 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·09:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:16 PM
DescriptionWeakness
Apr 21, 2026
Data Sourced
via NVD·08:17 PM
Severity
Apr 22, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeakness
Apr 23, 2026
Data Sourced
via NVD·03:33 PM
Affected Software
Apr 26, 2026
Event
via FIRST·12:00 AM
Aug 27, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Oct 5, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 21, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-5928?

CVE-2026-5928 is classified as a medium severity vulnerability due to its potential for causing buffer overflow issues.

2

How do I fix CVE-2026-5928?

To fix CVE-2026-5928, upgrade the GNU C Library to version 2.44 or later to mitigate the buffer overflow risk.

3

What are the risks of CVE-2026-5928?

The risks of CVE-2026-5928 include potential crashes and exploitation leading to arbitrary code execution on affected systems.

4

Which versions of GNU C Library are affected by CVE-2026-5928?

CVE-2026-5928 affects versions of the GNU C Library up to and including version 2.43.

5

Is CVE-2026-5928 related to file handling vulnerabilities?

Yes, CVE-2026-5928 involves a static buffer overflow that occurs during file handling with wide character encodings.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203