Advisory

UBUNTU-CVE-2026-5928

Also known as: CVE-2026-5928

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-04-20 21:16 UTC
Modified
2026-07-27 21:00 UTC

Affected packages and fixes

glibc

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.35-0ubuntu3.14 (ecosystem)

Fixed versions

2.35-0ubuntu3.14

Fix

  • Fixed version 2.35-0ubuntu3.14
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

glibc

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.39-0ubuntu8.8 (ecosystem)

Fixed versions

2.39-0ubuntu8.8

Fix

  • Fixed version 2.39-0ubuntu8.8
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

glibc

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

glibc

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.43-2ubuntu2.3 (ecosystem)

Fixed versions

2.43-2ubuntu2.3

Fix

  • Fixed version 2.43-2ubuntu2.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences