7.8
HIGH CVSS 3.1
CVE-2024-38629
dmaengine: idxd: Avoid unnecessary destruction of file_ida
Description

In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Avoid unnecessary destruction of file_ida file_ida is allocated during cdev open and is freed accordingly during cdev release. This sequence is guaranteed by driver file operations. Therefore, there is no need to destroy an already empty file_ida when the WQ cdev is removed. Worse, ida_free() in cdev release may happen after destruction of file_ida per WQ cdev. This can lead to accessing an id in file_ida after it has been destroyed, resulting in a kernel panic. Remove ida_destroy(&file_ida) to address these issues.

INFO

Published Date :

June 21, 2024, 11:15 a.m.

Last Modified :

Oct. 3, 2025, 2:53 p.m.

Remotely Exploit :

No

Source :

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

The following products are affected by CVE-2024-38629 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
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
This vulnerability can be remediated by updating the affected kernel packages.
  • Update the affected kernel packages.
  • If necessary, contact your vendor for more information.
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-38629 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-38629 weaknesses.

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-38629 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-38629 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.

  • Initial Analysis by [email protected]

    Oct. 03, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.9.4 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.4 up to (excluding) 6.6.33
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/15edb906211bf53e7b5574f7326ab734d6bff4f9 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/15edb906211bf53e7b5574f7326ab734d6bff4f9 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/76e43fa6a456787bad31b8d0daeabda27351a480 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/76e43fa6a456787bad31b8d0daeabda27351a480 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/9eb15f24a0b9b017b39cde8b8c07243676b63687 Types: Patch
    Added Reference Type CVE: https://git.kernel.org/stable/c/9eb15f24a0b9b017b39cde8b8c07243676b63687 Types: Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/15edb906211bf53e7b5574f7326ab734d6bff4f9
    Added Reference https://git.kernel.org/stable/c/76e43fa6a456787bad31b8d0daeabda27351a480
    Added Reference https://git.kernel.org/stable/c/9eb15f24a0b9b017b39cde8b8c07243676b63687
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 21, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Avoid unnecessary destruction of file_ida file_ida is allocated during cdev open and is freed accordingly during cdev release. This sequence is guaranteed by driver file operations. Therefore, there is no need to destroy an already empty file_ida when the WQ cdev is removed. Worse, ida_free() in cdev release may happen after destruction of file_ida per WQ cdev. This can lead to accessing an id in file_ida after it has been destroyed, resulting in a kernel panic. Remove ida_destroy(&file_ida) to address these issues.
    Added Reference kernel.org https://git.kernel.org/stable/c/9eb15f24a0b9b017b39cde8b8c07243676b63687 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/15edb906211bf53e7b5574f7326ab734d6bff4f9 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/76e43fa6a456787bad31b8d0daeabda27351a480 [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.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact