UBUNTU-CVE-2026-115819: Medium severity ubuntu/eglibc vulnerability

Published Nov 12, 2026
·
Updated

Calling the wide scanf family of functions (swscanf, fwscanf, wscanf, vswscanf, vfwscanf and vwscanf) with a %s or %[ conversion without the 'l' length modifier in the GNU C Library version 2.2 to version 2.44 writes an extra null byte one past the end of the destination array when the converted multibyte string and its terminating null byte exactly fill that array. These conversions store each wide input character into the caller's char array as a multibyte sequence. The conversion ends with the sequence that returns to the initial shift state, which also stores the terminating null byte, and the functions then append a second null byte. A destination sized for the converted string and one terminator, as the C standard requires the caller to provide, is therefore written one byte past its end. The out-of-bounds byte is always a null byte, which may corrupt adjacent data or crash the process. An attacker who supplies the input can trigger the overflow with a string whose converted length exactly fills the destination. The narrow scanf functions, the %ls and %l[ conversions into a wchart array, and the 'a' and 'm' allocation modifiers are not affected, and storing a wide scanf conversion into a narrow char array is uncommon. This issue affects all architectures and ABIs supported by the GNU C Library.

Affected Software

8 affected components
ubuntu/eglibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*
ubuntu/glibc*

Event History

Nov 12, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using swscanf, fwscanf, wscanf, vswscanf, vfwscanf, or vwscanf with a %s or %[ conversion without the l length modifier are exposed when the conversion writes into a caller-provided char array. The issue affects GNU C Library versions 2.2 through 2.44.

2

What must an attacker be able to do to trigger the overflow?

An attacker must be able to supply the input processed by the affected wide scanf conversion. Their input must convert to a multibyte string whose bytes, including its expected terminator, exactly fill the destination array.

3

What is the impact of a successful trigger?

The functions write one additional null byte immediately past the end of the destination array. This can corrupt adjacent data or crash the process.

4

Are there affected-looking scanf usages that are not vulnerable?

The narrow scanf functions are not affected. Wide scanf conversions using %ls or %l[ into a wchar_t array, as well as the a and m allocation modifiers, are not affected.

5

How can I identify potentially affected code before updating the library?

Audit calls to the wide scanf family for %s or %[ conversions without l that store into fixed caller-provided char arrays. Prioritize cases where untrusted input can reach those calls and where the destination can be exactly filled by converted input.

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