REDHAT-BUG-2525256: Buffer Overflow

Published Aug 27, 2026
·
Updated

Passing an effectively empty string to the ,ccs= syntax extension of the mode argument in the fopen function in the GNU C Library version 2.45 or earlier may result in a heap buffer overflow when the mode string input to the function is attacker controlled.

This usage pattern is not seen in applications in common GNU/Linux distributions and applications that process user-supplied values for ccs should not pass them through without validation.

Affected Software

1 affected component
GNU GNU C Library<=2.45

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Validate application-supplied values for the `ccs` parameter before passing them to the GNU C Library `fopen` function; do not pass attacker-controlled `ccs` values through without validation, especially empty strings.

Event History

Aug 27, 2026
Data Sourced
via Red Hat·08:20 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are realistically exposed?

Applications are exposed only if they use fopen with the ,ccs= mode-string extension and allow an attacker to control the mode string or the ccs value without validation. This usage pattern is not seen in applications in common GNU/Linux distributions.

2

What input is needed to trigger the issue?

The attacker-controlled mode argument must use the ,ccs= extension with an effectively empty string supplied as its value. The affected behavior applies to GNU C Library version 2.45 or earlier.

3

What can be done if an update is not immediately available?

Do not pass user-supplied ccs values directly into fopen mode strings. Validate and constrain any ccs value before constructing or passing the mode argument, and reject effectively empty values.

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