CVE-2026-23252: xfs: get rid of the xchk_xfile_*_descr calls
In the Linux kernel, the following vulnerability has been resolved:
xfs: get rid of the xchkxfiledescr calls
The xchkxfiledescr macros call kasprintf, which can fail to allocate memory if the formatted string is larger than 16 bytes (or whatever the nofail guarantees are nowadays). Some of them could easily exceed that, and Jiaming Zhang found a few places where that can happen with syzbot.
The descriptions are debugging aids and aren't required to be unique, so let's just pass in static strings and eliminate this path to failure. Note this patch touches a number of commits, most of which were merged between 6.6 and 6.14.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.85-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.19.6-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.78 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.16 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.19.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
Replace the xchk_xfile_*_descr macros/calls with static strings, since the descriptions are debugging aids and do not need to be unique; this eliminates the kasprintf allocation failure path.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-23252?
The severity of CVE-2026-23252 is considered medium due to potential memory allocation failures in the Linux kernel.
How do I fix CVE-2026-23252?
To fix CVE-2026-23252, update your Linux kernel to a version later than 6.14.
What are the potential risks associated with CVE-2026-23252?
The potential risks associated with CVE-2026-23252 include application crashes or undefined behavior due to memory allocation issues.
Which versions of the Linux kernel are affected by CVE-2026-23252?
CVE-2026-23252 affects the Linux kernel versions from 6.6 up to and including 6.14.
Is CVE-2026-23252 a remote attack vector?
No, CVE-2026-23252 does not present a remote attack vector, as it primarily involves local memory management.