CVE-2024-40902: jfs: xattr: fix buffer overflow for invalid xattr

Published Jul 12, 2024
·
Updated

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 Software

17 affected componentsFixes available
Linux Linux kernel<4.19.317
Linux Linux kernel>=4.20<5.4.279
Linux Linux kernel>=5.5<5.10.221
Linux Linux kernel>=5.11<5.15.162
Linux Linux kernel>=5.16<6.1.95
Linux Linux kernel>=6.2<6.6.35
Linux Linux kernel>=6.7<6.9.6
Linux Linux kernel=6.10-rc1
Linux Linux kernel=6.10-rc2
Linux Linux kernel=6.10-rc3
debian/linux
5.10.223-15.10.234-16.1.137-16.1.135-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft azl3 kernel 6.6.35.1-1
Microsoft cbl2 kernel 5.15.162.2-1
Microsoft cbl2 kernel 5.15.160.1-1
Microsoft cbl2 kernel 5.15.160.1-1
Microsoft azl3 kernel 6.6.22.1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.137-1Fixed in 6.1.135-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch jfs: xattr: fix buffer overflow for invalid xattr

Event History

Jul 12, 2024
CVE Published
via MITRE·12:20 PM
Data Sourced
via MITRE·12:20 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 5, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·05:24 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-40902?

CVE-2024-40902 has a high severity rating due to the potential for a buffer overflow leading to system crashes or arbitrary code execution.

2

How do I fix CVE-2024-40902?

To fix CVE-2024-40902, update the Linux kernel to the latest secure versions such as 5.10.223-1 or 6.1.123-1.

3

What versions of the Linux kernel are affected by CVE-2024-40902?

CVE-2024-40902 affects various versions of the Linux kernel between 4.19.317 and any version prior to 6.10-rc1.

4

Does CVE-2024-40902 allow exploitation remotely?

CVE-2024-40902 can potentially be exploited locally, but its impact might be elevated if combined with other vulnerabilities.

5

What should I do if I cannot upgrade the Linux kernel for CVE-2024-40902?

If unable to upgrade, apply any available backported patches specific to CVE-2024-40902 for your Linux distribution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203