CVE-2024-46852
dma-buf: heaps: Fix off-by-one in CMA heap fault handler
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.
Fixes and workarounds
No remediation reported in collected sources.
Missing remediation information is not evidence that no patch exists.
Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| Linux Linux |
≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < 79cce5e81d20fa9ad553be439d665ac3302d3c95 (affected, git) ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < 84175dc5b2c932266a50c04e5ce342c30f817a2f (affected, git) ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < eb7fc8b65cea22f9038c52398c8b22849e9620ea (affected, git) ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < e79050882b857c37634baedbdcf7c2047c24cbff (affected, git) ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < ea5ff5d351b520524019f7ff7f9ce418de2dad87 (affected, git) Other versions: unaffected |
CNA: Linux |
| Linux Linux |
5.11 (affected) ≥ 0; < 5.11 (unaffected, semver) ≥ 5.15.168; ≤ 5.15.* (unaffected, semver) ≥ 6.1.111; ≤ 6.1.* (unaffected, semver) ≥ 6.6.52; ≤ 6.6.* (unaffected, semver) ≥ 6.10.11; ≤ 6.10.* (unaffected, semver) ≥ 6.11; ≤ * (unaffected, original_commit_for_fix) Other versions: affected |
CNA: Linux |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.8 high |
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CNA: Linux |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://git.kernel.org/stable/c/79cce5e81d20fa9ad553be439d665ac3302d3c95CNA: Linux
- https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2fCNA: Linux
- https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620eaCNA: Linux
- https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbffCNA: Linux
- https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87CNA: Linux
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.htmlADP: CVE
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.