VDB

CVE-2024-46852

CVE-2024-46852 PUBLISHED CVSS 7.8 HIGH

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

Reported by linux · Published September 27, 2024

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.

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxa5d2d29e24be8967ef78a1b1fb2292413e3b3df9, a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, a5d2d29e24be8967ef78a1b1fb2292413e3b3df9
LinuxLinux5.11, 0, 5.15.168
linuxlinux_kernel5.11, 5.11, 5.11
LinuxLinux*, *, *

Timeline

  • Sep 27, 2024 CVE Published
  • Sep 28, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Jan 4, 2026 Security Advisory (160 in total, the first dated here)
  • Jan 4, 2026 CVE Updated
  • Mar 30, 2026 Distribution Patch (137 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-46852
vulnetix vdb fixes CVE-2024-46852

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-46852/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›