5.5
MEDIUM
CVE-2024-43856
Linux Kernel dma devres Double Free Vulnerability
Description

In the Linux kernel, the following vulnerability has been resolved: dma: fix call order in dmam_free_coherent dmam_free_coherent() frees a DMA allocation, which makes the freed vaddr available for reuse, then calls devres_destroy() to remove and free the data structure used to track the DMA allocation. Between the two calls, it is possible for a concurrent task to make an allocation with the same vaddr and add it to the devres list. If this happens, there will be two entries in the devres list with the same vaddr and devres_destroy() can free the wrong entry, triggering the WARN_ON() in dmam_match. Fix by destroying the devres entry before freeing the DMA allocation. kokonut //net/encryption http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03

INFO

Published Date :

Aug. 17, 2024, 10:15 a.m.

Last Modified :

Aug. 22, 2024, 5:57 p.m.

Source :

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

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-43856 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-43856 vulnerability anywhere in the article.

  • Cyber Security News
Linux Kernal Vulnerability Let Attackers Bypass CPU & Write on Memory

Researchers uncovered a vulnerability in the Linux kernel’s dmam_free_coherent() function, which stems from a race condition caused by the improper order of operations when freeing DMA (Direct Memory ... Read more

Published Date: Aug 19, 2024 (1 month ago)

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

    Aug. 22, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://git.kernel.org/stable/c/1fe97f68fce1ba24bf823bfb0eb0956003473130 No Types Assigned https://git.kernel.org/stable/c/1fe97f68fce1ba24bf823bfb0eb0956003473130 Patch
    Changed Reference Type https://git.kernel.org/stable/c/22094f5f52e7bc16c5bf9613365049383650b02e No Types Assigned https://git.kernel.org/stable/c/22094f5f52e7bc16c5bf9613365049383650b02e Patch
    Changed Reference Type https://git.kernel.org/stable/c/257193083e8f43907e99ea633820fc2b3bcd24c7 No Types Assigned https://git.kernel.org/stable/c/257193083e8f43907e99ea633820fc2b3bcd24c7 Patch
    Changed Reference Type https://git.kernel.org/stable/c/28e8b7406d3a1f5329a03aa25a43aa28e087cb20 No Types Assigned https://git.kernel.org/stable/c/28e8b7406d3a1f5329a03aa25a43aa28e087cb20 Patch
    Changed Reference Type https://git.kernel.org/stable/c/2f7bbdc744f2e7051d1cb47c8e082162df1923c9 No Types Assigned https://git.kernel.org/stable/c/2f7bbdc744f2e7051d1cb47c8e082162df1923c9 Patch
    Changed Reference Type https://git.kernel.org/stable/c/87b34c8c94e29fa01d744e5147697f592998d954 No Types Assigned https://git.kernel.org/stable/c/87b34c8c94e29fa01d744e5147697f592998d954 Patch
    Changed Reference Type https://git.kernel.org/stable/c/f993a4baf6b622232e4c190d34c220179e5d61eb No Types Assigned https://git.kernel.org/stable/c/f993a4baf6b622232e4c190d34c220179e5d61eb Patch
    Changed Reference Type https://git.kernel.org/stable/c/fe2d246080f035e0af5793cb79067ba125e4fb63 No Types Assigned https://git.kernel.org/stable/c/fe2d246080f035e0af5793cb79067ba125e4fb63 Patch
    Added CWE NIST CWE-770
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.21 up to (excluding) 4.19.320 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.282 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.224 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.165 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.103 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.44 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.3
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 19, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://git.kernel.org/stable/c/fe2d246080f035e0af5793cb79067ba125e4fb63 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2f7bbdc744f2e7051d1cb47c8e082162df1923c9 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/257193083e8f43907e99ea633820fc2b3bcd24c7 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/87b34c8c94e29fa01d744e5147697f592998d954 [No types assigned]
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 17, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: dma: fix call order in dmam_free_coherent dmam_free_coherent() frees a DMA allocation, which makes the freed vaddr available for reuse, then calls devres_destroy() to remove and free the data structure used to track the DMA allocation. Between the two calls, it is possible for a concurrent task to make an allocation with the same vaddr and add it to the devres list. If this happens, there will be two entries in the devres list with the same vaddr and devres_destroy() can free the wrong entry, triggering the WARN_ON() in dmam_match. Fix by destroying the devres entry before freeing the DMA allocation. kokonut //net/encryption http://sponge2/b9145fe6-0f72-4325-ac2f-a84d81075b03
    Added Reference kernel.org https://git.kernel.org/stable/c/f993a4baf6b622232e4c190d34c220179e5d61eb [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1fe97f68fce1ba24bf823bfb0eb0956003473130 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/22094f5f52e7bc16c5bf9613365049383650b02e [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/28e8b7406d3a1f5329a03aa25a43aa28e087cb20 [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-43856 is associated with the following CWEs:

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