Public vulnerability disclosure

CVE-2024-46852

dma-buf: heaps: Fix off-by-one in CMA heap fault handler

published

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.

Technical severity7.8 highCVSS 3.1 · CNA: Linux
Published2024-09-27Source updated 2026-11-03
Collected2026-11-032 attributed sources

Fixes and workarounds

No remediation reported in collected sources.

Missing remediation information is not evidence that no patch exists.

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.8
high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCNA: Linux

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide