CVE-2024-40902

jfs: xattr: fix buffer overflow for invalid xattr

State
Published
Severity
7.8 High
Published
Jul 12, 2024
Updated
Aug 5, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before f0dedb5c511ed82cbaff4997a8decf2351ba549fAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 1e84c9b1838152a87cf453270a5fa75c5037e83aAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before fc745f6e83cb650f9a5f2c864158e3a5ea76dad0Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 480e5bc21f2c42d90c2c16045d64d824dcdd5ec7Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 33aecc5799c93d3ee02f853cb94e201f9731f123Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 4598233d9748fe4db4e13b9f473588aa25e87d69Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before b537cb2f4c4a1357479716a9c339c0bda03d873fAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 7c55b78818cfb732680c4a72ab270cc2d2ee3d0fAffected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 4.19.317 through 4.19.*Not affected
  • 5.4.279 through 5.4.*Not affected
  • 5.10.221 through 5.10.*Not affected
  • 5.15.162 through 5.15.*Not affected
  • 6.1.95 through 6.1.*Not affected
  • 6.6.35 through 6.6.*Not affected
  • 6.9.6 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.