The glob functions in the GNU C Library versions 2.44 and earlier may free the same heap block twice when a memory allocation fails while glob prepend...
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 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSglibc |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10glibc |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSglibc |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
The glob functions in the GNU C Library versions 2.44 and earlier may free the same heap block twice when a memory allocation fails while glob prepends the directory name to the names it matched. The names already rewritten are freed, but their pointers stay in the result vector, and the error path frees them again with globfree. The allocation must fail after at least one name has been rewritten, so the issue can only be reached when the process is already close to its memory limit, for example under an address space limit (RLIMIT_AS) or on a 32-bit system. The attacker needs control to make the result large enough to make the program or service run out of memory, either by controlling the glob pattern and having knowledge of the filesystem layout or through other means. This issue affects all architectures and ABIs supported by the GNU C Library.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report openwall.com
- report sourceware.org
- report sourceware.org
- report sourceware.org
- report openwall.com