# CVE-2024-46852: dma-buf: heaps: Fix off-by-one in CMA heap fault handler

Status: published. Published: 2024-09-27. Updated: 2026-11-03.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67) — https://git.kernel.org/stable/c/79cce5e81d20fa9ad553be439d665ac3302d3c95
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67) — https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2f
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67) — https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67) — https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67) — https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea

## Affected products and versions

- Linux / Linux: ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < 79cce5e81d20fa9ad553be439d665ac3302d3c95 (affected, git); ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < 84175dc5b2c932266a50c04e5ce342c30f817a2f (affected, git); ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < eb7fc8b65cea22f9038c52398c8b22849e9620ea (affected, git); ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < e79050882b857c37634baedbdcf7c2047c24cbff (affected, git); ≥ a5d2d29e24be8967ef78a1b1fb2292413e3b3df9; < ea5ff5d351b520524019f7ff7f9ce418de2dad87 (affected, git). Source: 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). Source: CNA: Linux

## NVD configuration conditions

Affected CPE matches depend on the following AND/OR and negation conditions:

```json
[
  {
    "negate": false,
    "nodes": [
      {
        "cpeMatch": [
          {
            "criteria": "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "5.15.168",
            "versionStartIncluding": "5.11",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.1.111",
            "versionStartIncluding": "5.16",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.6.52",
            "versionStartIncluding": "6.2",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
            "versionEndExcluding": "6.10.11",
            "versionStartIncluding": "6.7",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc4:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc5:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc6:*:*:*:*:*:*",
            "vulnerable": true
          },
          {
            "criteria": "cpe:2.3:o:linux:linux_kernel:6.11:rc7:*:*:*:*:*:*",
            "vulnerable": true
          }
        ],
        "negate": false,
        "operator": "OR"
      }
    ],
    "operator": "OR"
  }
]
```

## Severity and prioritization

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: CNA: Linux

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: nvd@nist.gov

- CVSS 3.1: 7.8 (high); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; source: NVD: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

- CISA KEV: No listing in collected sources

- EPSS: 0.21% as of 2026-11-03; percentile 12.00%

- SSVC: exploitation none; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-193

## Exploit evidence

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

## References

- https://git.kernel.org/stable/c/79cce5e81d20fa9ad553be439d665ac3302d3c95 (CNA: Linux)

- https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2f (CNA: Linux)

- https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea (CNA: Linux)

- https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff (CNA: Linux)

- https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87 (CNA: Linux)

- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html (ADP: CVE)

- https://git.kernel.org/stable/c/79cce5e81d20fa9ad553be439d665ac3302d3c95 (416baaa9-dc9f-4396-8d5f-8c081fb06d67; Patch)

- https://git.kernel.org/stable/c/84175dc5b2c932266a50c04e5ce342c30f817a2f (416baaa9-dc9f-4396-8d5f-8c081fb06d67; Patch)

- https://git.kernel.org/stable/c/e79050882b857c37634baedbdcf7c2047c24cbff (416baaa9-dc9f-4396-8d5f-8c081fb06d67; Patch)

- https://git.kernel.org/stable/c/ea5ff5d351b520524019f7ff7f9ce418de2dad87 (416baaa9-dc9f-4396-8d5f-8c081fb06d67; Patch)

- https://git.kernel.org/stable/c/eb7fc8b65cea22f9038c52398c8b22849e9620ea (416baaa9-dc9f-4396-8d5f-8c081fb06d67; Patch)

- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html (af854a3a-2127-422b-91ae-364da2661108; Mailing List, Third Party Advisory)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2024-46852; retrieved 2026-11-03; source updated 2026-11-03

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-46852; retrieved 2026-11-04; source updated 2026-11-03

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2024-46852; retrieved 2026-11-03; source updated Not reported

Revision: 0d106e58fcd0cad9dbbd0530da60cb3199e466f63f679def3623268d373538bb

Canonical: https://y2.dev/cve/CVE-2024-46852

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.