CVE-2024-40902: linux Classic Buffer Overflow
Vulnerability summary
CVE-2024-40902 is a high (CVSS 7.8) Classic Buffer Overflow vulnerability in linux. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 23.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 36 · Related 33Timeline
- 12-07-2024PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.32%
Chance of exploitation in the next 30 days
Percentile
24%
Versus all other CVEs
30-day change
0.00 pp
From 0.32% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.
- CWE-121Stack-based Buffer OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
Affected systems
Ubuntu128 products
- linuxAll versions (No fix recorded) | < 4.4.0-259.293 | < 4.15.0-229.241 | < 5.4.0-195.215 | < 5.15.0-121.131 | < 6.8.0-44.44
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.4.0-1136.142 | < 4.4.0-1174.189 | < 4.15.0-1173.186 | < 5.4.0-1132.142 | < 5.15.0-1069.75 | < 6.8.0-1015.16
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f0dedb5c511ed82cbaff4997a8decf2351ba549f | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1e84c9b1838152a87cf453270a5fa75c5037e83a | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fc745f6e83cb650f9a5f2c864158e3a5ea76dad0 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 480e5bc21f2c42d90c2c16045d64d824dcdd5ec7 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 33aecc5799c93d3ee02f853cb94e201f9731f123 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4598233d9748fe4db4e13b9f473588aa25e87d69 | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b537cb2f4c4a1357479716a9c339c0bda03d873f | ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7c55b78818cfb732680c4a72ab270cc2d2ee3d0f | 2.6.12
- linux_kernel< 4.19.317 | ≥ 4.20, < 5.4.279 | ≥ 5.5, < 5.10.221 | ≥ 5.11, < 5.15.162 | ≥ 5.16, < 6.1.95 | ≥ 6.2, < 6.6.35 | ≥ 6.7, < 6.9.6 | 6.10:rc1 | 6.10:rc2 | 6.10:rc3
Debian1 product
- linux< 6.1.99-1 | < 6.9.7-1
3 vendors · 131 products