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...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSeglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSglibc |
< 2.35-0ubuntu3.18→ 2.35-0ubuntu3.18 |
2.35-0ubuntu3.18 |
| Ubuntu:24.04:LTSglibc |
< 2.39-0ubuntu8.12→ 2.39-0ubuntu8.12 |
2.39-0ubuntu8.12 |
| Ubuntu:26.04:LTSglibc |
< 2.43-2ubuntu2.7→ 2.43-2ubuntu2.7 |
2.43-2ubuntu2.7 |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report sourceware.org
- report openwall.com