CVE-2024-40902

jfs: xattr: fix buffer overflow for invalid xattr

HIGH
7.8
CVSS Score
Published: July 12, 2024 at 12:20 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.19.3172.6.12 ≤ v < 4.19.3172.6.12 ≤ v < 5.10.2212.6.12 ≤ v < 5.15.1622.6.12 ≤ v < 5.4.2792.6.12 ≤ v < 6.1.952.6.12 ≤ v < 6.102.6.12 ≤ v < 6.6.352.6.12 ≤ v < 6.9.64.20 ≤ v < 5.4.2795.11 ≤ v < 5.15.1625.16 ≤ v < 6.1.955.5 ≤ v < 5.10.2216.2 ≤ v < 6.6.356.7 ≤ v < 6.9.61da177e4c3f41da177e4c3f41524e886b7f1b8a0c1fc7321cac26.10 rc16.10 rc26.10 rc3
Vendor states this is fixed in 1e84c9b18381 (fixed)
Vendor states this is fixed in 1e84c9b1838152a87cf453270a5fa75c5037e83a (fixed)
Vendor states this is fixed in 33aecc5799c9 (fixed)
Vendor states this is fixed in 33aecc5799c93d3ee02f853cb94e201f9731f123 (fixed)
Vendor states this is fixed in 4598233d9748 (fixed)
Vendor states this is fixed in 4598233d9748fe4db4e13b9f473588aa25e87d69 (fixed)
Vendor states this is fixed in 480e5bc21f2c (fixed)
Vendor states this is fixed in 480e5bc21f2c42d90c2c16045d64d824dcdd5ec7 (fixed)
Vendor states this is fixed in 7c55b78818cf (fixed)
Vendor states this is fixed in 7c55b78818cfb732680c4a72ab270cc2d2ee3d0f (fixed)
Vendor states this is fixed in b537cb2f4c4a (fixed)
Vendor states this is fixed in b537cb2f4c4a1357479716a9c339c0bda03d873f (fixed)
Vendor states this is fixed in f0dedb5c511e (fixed)
Vendor states this is fixed in f0dedb5c511ed82cbaff4997a8decf2351ba549f (fixed)
Vendor states this is fixed in fc745f6e83cb (fixed)
Vendor states this is fixed in fc745f6e83cb650f9a5f2c864158e3a5ea76dad0 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.19.317 (unaffected)
Vendor states this is fixed in 5.10.221 (unaffected)
Vendor states this is fixed in 5.15.162 (unaffected)
Vendor states this is fixed in 5.4.279 (unaffected)
Vendor states this is fixed in 6.1.95 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.35 (unaffected)
Vendor states this is fixed in 6.9.6 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1e84c9b1838152a87cf453270a5fa75c5037e83a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/33aecc5799c93d3ee02f853cb94e201f9731f123
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4598233d9748fe4db4e13b9f473588aa25e87d69
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/480e5bc21f2c42d90c2c16045d64d824dcdd5ec7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7c55b78818cfb732680c4a72ab270cc2d2ee3d0f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b537cb2f4c4a1357479716a9c339c0bda03d873f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f0dedb5c511ed82cbaff4997a8decf2351ba549f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fc745f6e83cb650f9a5f2c864158e3a5ea76dad0

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-120CWE-121

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card