CVE-2024-40902

published 12 Jul 2024 · updated 12 Aug 2026

jfs: xattr: fix buffer overflow for invalid xattr

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1e84c9b1838152a87cf453270a5fa75c5037e83a, Kernel 33aecc5799c93d3ee02f853cb94e201f9731f123, Kernel 4598233d9748fe4db4e13b9f473588aa25e87d69 and 5 more.

In the Linux kernel, the following vulnerability has been resolved: jfs: xattr: fix buffer overflow for invalid xattr When an xattr size is not what is expected, it is printed out to the kernel log in hex format as a form of debugging. But when that xattr size is bigger than the expected size, printing it out can cause an access off the end of the buffer. Fix this all up by properly restricting the size of the debug hex dump in the kernel log.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=2.6.12, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1e84c9b1838152a87cf453270a5fa75c5037e83a, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <33aecc5799c93d3ee02f853cb94e201f9731f123, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4598233d9748fe4db4e13b9f473588aa25e87d69, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <480e5bc21f2c42d90c2c16045d64d824dcdd5ec7, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <7c55b78818cfb732680c4a72ab270cc2d2ee3d0f, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b537cb2f4c4a1357479716a9c339c0bda03d873f, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f0dedb5c511ed82cbaff4997a8decf2351ba549f, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <fc745f6e83cb650f9a5f2c864158e3a5ea76dad01e84c9b1838152a87cf453270a5fa75c5037e83a, 33aecc5799c93d3ee02f853cb94e201f9731f123, 4598233d9748fe4db4e13b9f473588aa25e87d69, 480e5bc21f2c42d90c2c16045d64d824dcdd5ec7, 7c55b78818cfb732680c4a72ab270cc2d2ee3d0f, b537cb2f4c4a1357479716a9c339c0bda03d873f, f0dedb5c511ed82cbaff4997a8decf2351ba549f, fc745f6e83cb650f9a5f2c864158e3a5ea76dad0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-40902 severity on Zeptric[![CVE-2024-40902](https://zeptric.io/badge/cve/CVE-2024-40902.svg)](https://zeptric.io/cve/CVE-2024-40902)