CVE-2024-46852
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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, a5d2d29e24be8967ef78a1b1fb2292413e3b3df9 |
| Linux | Linux | 5.11, 0, 5.15.168 |
| linux | linux_kernel | 5.11, 5.11, 5.11 |
| Linux | Linux | *, *, * |
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