CVE-2024-46852
Linux Kernel DMA-Buf CMA Heap Off-By-One Read Vulnerability
Description
In the Linux kernel, the following vulnerability has been resolved: dma-buf: heaps: Fix off-by-one in CMA heap fault handler Until VM_DONTEXPAND was added in commit 1c1914d6e8c6 ("dma-buf: heaps: Don't track CMA dma-buf pages under RssFile") it was possible to obtain a mapping larger than the buffer size via mremap and bypass the overflow check in dma_buf_mmap_internal. When using such a mapping to attempt to fault past the end of the buffer, the CMA heap fault handler also checks the fault offset against the buffer size, but gets the boundary wrong by 1. Fix the boundary check so that we don't read off the end of the pages array and insert an arbitrary page in the mapping.
INFO
Published Date :
Sept. 27, 2024, 1:15 p.m.
Last Modified :
Oct. 17, 2024, 2:15 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-46852
.
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-46852
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-46852
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 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 17, 2024
Action Type Old Value New Value Added Reference kernel.org https://git.kernel.org/stable/c/007180fcb6cc4a93211d4cc45fef3f5ccccd56ae [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/79cce5e81d20fa9ad553be439d665ac3302d3c95 [No types assigned] -
Initial Analysis by [email protected]
Oct. 02, 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/84175dc5b2c932266a50c04e5ce342c30f817a2f No Types Assigned https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2f Patch Changed Reference Type https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff No Types Assigned https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff Patch Changed Reference Type https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87 No Types Assigned https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87 Patch Changed Reference Type https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea No Types Assigned https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea Patch Added CWE NIST CWE-193 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 6.1.111 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.52 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.11 *cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.11:rc7:*:*:*:*:*:* -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 27, 2024
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: dma-buf: heaps: Fix off-by-one in CMA heap fault handler Until VM_DONTEXPAND was added in commit 1c1914d6e8c6 ("dma-buf: heaps: Don't track CMA dma-buf pages under RssFile") it was possible to obtain a mapping larger than the buffer size via mremap and bypass the overflow check in dma_buf_mmap_internal. When using such a mapping to attempt to fault past the end of the buffer, the CMA heap fault handler also checks the fault offset against the buffer size, but gets the boundary wrong by 1. Fix the boundary check so that we don't read off the end of the pages array and insert an arbitrary page in the mapping. Added Reference kernel.org https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2f [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87 [No types assigned]
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-46852
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-46852
weaknesses.