7.8
HIGH
CVE-2024-40902
"Linux Jfs Buffer Overflow Vulnerability"
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.

INFO

Published Date :

July 12, 2024, 1:15 p.m.

Last Modified :

Aug. 20, 2024, 2:35 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-40902 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-40902 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-40902 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 20, 2024

    Action Type Old Value New Value
    Added CWE CISA-ADP CWE-121
    Added CVSS V3.1 CISA-ADP AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Initial Analysis by [email protected]

    Jul. 24, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/1e84c9b1838152a87cf453270a5fa75c5037e83a No Types Assigned https://git.kernel.org/stable/c/1e84c9b1838152a87cf453270a5fa75c5037e83a Patch
    Changed Reference Type https://git.kernel.org/stable/c/33aecc5799c93d3ee02f853cb94e201f9731f123 No Types Assigned https://git.kernel.org/stable/c/33aecc5799c93d3ee02f853cb94e201f9731f123 Patch
    Changed Reference Type https://git.kernel.org/stable/c/4598233d9748fe4db4e13b9f473588aa25e87d69 No Types Assigned https://git.kernel.org/stable/c/4598233d9748fe4db4e13b9f473588aa25e87d69 Patch
    Changed Reference Type https://git.kernel.org/stable/c/480e5bc21f2c42d90c2c16045d64d824dcdd5ec7 No Types Assigned https://git.kernel.org/stable/c/480e5bc21f2c42d90c2c16045d64d824dcdd5ec7 Patch
    Changed Reference Type https://git.kernel.org/stable/c/7c55b78818cfb732680c4a72ab270cc2d2ee3d0f No Types Assigned https://git.kernel.org/stable/c/7c55b78818cfb732680c4a72ab270cc2d2ee3d0f Patch
    Changed Reference Type https://git.kernel.org/stable/c/b537cb2f4c4a1357479716a9c339c0bda03d873f No Types Assigned https://git.kernel.org/stable/c/b537cb2f4c4a1357479716a9c339c0bda03d873f Patch
    Changed Reference Type https://git.kernel.org/stable/c/f0dedb5c511ed82cbaff4997a8decf2351ba549f No Types Assigned https://git.kernel.org/stable/c/f0dedb5c511ed82cbaff4997a8decf2351ba549f Patch
    Changed Reference Type https://git.kernel.org/stable/c/fc745f6e83cb650f9a5f2c864158e3a5ea76dad0 No Types Assigned https://git.kernel.org/stable/c/fc745f6e83cb650f9a5f2c864158e3a5ea76dad0 Patch
    Added CWE NIST CWE-120
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 4.19.317 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.279 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.221 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.162 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.95 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.35 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.9.6 *cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:*
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 12, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/f0dedb5c511ed82cbaff4997a8decf2351ba549f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1e84c9b1838152a87cf453270a5fa75c5037e83a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/fc745f6e83cb650f9a5f2c864158e3a5ea76dad0 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/480e5bc21f2c42d90c2c16045d64d824dcdd5ec7 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/33aecc5799c93d3ee02f853cb94e201f9731f123 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/4598233d9748fe4db4e13b9f473588aa25e87d69 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/b537cb2f4c4a1357479716a9c339c0bda03d873f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/7c55b78818cfb732680c4a72ab270cc2d2ee3d0f [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-40902 is associated with the following CWEs:

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability