CVE-2025-15281: wordexp with WRDE_REUSE and WRDE_APPEND may return uninitialized memory
Calling wordexp with WRDEREUSE in conjunction with WRDEAPPEND in the GNU C Library version 2.0 to version 2.42 may cause the interface to return uninitialized memory in the wewordv member, which on subsequent calls to wordfree may abort the process.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.23-0ubuntu11.3+esm9 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.27-3ubuntu1.6+esm6 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.31-0ubuntu9.18+esm1 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.35-0ubuntu3.13 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.39-0ubuntu8.7 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.42-0ubuntu3.1 - Upgrade
Upgrade
ubuntu/glibcto a version that resolves this vulnerability.Fixed in 2.42-2ubuntu5 - Upgrade
Upgrade
debian/glibcto a version that resolves this vulnerability.Fixed in 2.36-9+deb12u14 - Upgrade
Upgrade
debian/glibcto a version that resolves this vulnerability.Fixed in 2.41-12+deb13u2 - Upgrade
Upgrade
debian/glibcto a version that resolves this vulnerability.Fixed in 2.42-11 - Upgrade
Upgrade
debian/glibcto a version that resolves this vulnerability.Fixed in 2.31-13+deb11u14Fixed in 2.36-9+deb12u14Fixed in 2.41-12+deb13u2Fixed in 2.42-11
Event History
Frequently Asked Questions
What is the severity of CVE-2025-15281?
CVE-2025-15281 is considered a high severity vulnerability due to the potential exposure of uninitialized memory.
How do I fix CVE-2025-15281?
To fix CVE-2025-15281, update the GNU C Library to a version later than 2.42.
Which versions of the GNU C Library are affected by CVE-2025-15281?
CVE-2025-15281 affects GNU C Library versions from 2.0 to 2.42.
What could be the consequences of exploiting CVE-2025-15281?
Exploiting CVE-2025-15281 may lead to the disclosure of sensitive information due to uninitialized memory access.
Is CVE-2025-15281 dependent on specific usage patterns of wordexp?
Yes, CVE-2025-15281 specifically arises when using wordexp with both WRDE_REUSE and WRDE_APPEND flags.