Bug 2569397 - CVE-2026-125709 mingw-gcc: overflow leaves streambuf in inconsistent state on I/O error. [fedora-44]
Summary: CVE-2026-125709 mingw-gcc: overflow leaves streambuf in inconsistent state on...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-gcc
Version: 44
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Kalev Lember
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["05be9443-d31b-4d79-962e-c...
Depends On:
Blocks: CVE-2026-125709
TreeView+ depends on / blocked
 
Reported: 2026-11-10 10:50 UTC by Marian Rehak
Modified: 2026-11-10 10:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2026-11-10 10:50:12 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.


Note You need to log in before you can comment on or make changes to this bug.