CVE-2026-125709: Buffer Overflow

Published Nov 10, 2026
·
Updated

A flaw was found in libstdc++. When a byte-by-byte write operation fails during file stream processing, the library may still append data into the internal memory buffer. An attacker capable of inducing repeated write failures in an affected service can trigger a buffer overflow, potentially resulting in a Denial of Service (DoS) or memory corruption.

Other sources

Basically if an fstream bytewise write using stream->putc() fails due to an error (e.g. a transient disk failure or ENOSPCE), the operation ends up writing the char into the backing buffer anyway and multiple such operations could eventually result in writing arbitrary bytes beyond the backing buffer. Note that a typical stream write (i.e. stream << "foo" ) is not affected by this.

Requisites for an attack:

1. Ability to invoke a write failure by, e.g. chaining a different vulnerability that allows such access 2. Finding a target suid application or service that calls stream->putc() in a user-controlled path 3. Ability to already control the execution frequency of stream->putc() to cause a buffer overflow.

There are no suid applications that use this pattern AFAIK, so I don't think there's a local attack vector here at all, only a network one through a service. There's no confidentiality compromise either AFAICT, there's only a minor risk of data corruption and a small incremental (given the already compromised ability to invoke a storage failure) risk of DoS due to invoking a crash in the target service that meets all of the above criteria.

— Red Hat

Affected Software

1 affected component
GNU libstdc++

Event History

Nov 10, 2026
Data Sourced
via Red Hat·10:38 AM
DescriptionSeverityAffected Software
CVE Published
via NVD·12:17 PM
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeakness

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