CVE-2024-46852 dma-buf: heaps: Fix off-by-one in CMA heap fault handler
HighCVSS 7.8
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Linux KernelUbuntuDebian
Description
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
- 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.
Upgrade path
11 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.112-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +26 more | 6.1.112-1 | Fixed |
| debian/linux(Debian 13) | < 6.10.11-1 | 6.10.11-1 | Fixed |
| debian/linux(Debian 14) | < 6.10.11-1 | 6.10.11-1 | Fixed |
| Linux kernel | < 5.15.168; < 6.1.111; < 6.6.52; < 6.10.11 +18 more | 5.15.168, 6.1.111, 6.6.52, 6.10.11, 6.11, 79cce5e81d20fa9ad553be439d665ac3302d3c95, 84175dc5b2c932266a50c04e5ce342c30f817a2f, e79050882b857c37634baedbdcf7c2047c24cbff, ea5ff5d351b520524019f7ff7f9ce418de2dad87, eb7fc8b65cea22f9038c52398c8b22849e9620ea | Fixed |
| Microsoft azure linux | < 6.6.56.1-5 | 6.6.56.1-5 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-127.137 | 5.15.0-127.137 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-50.51 | 6.8.0-50.51 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1016.18 | 6.8.0-1016.18 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.56.1-5 | 6.6.56.1-5 |
| debian/linux(Debian:12) | < 6.1.112-1 | 6.1.112-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
Show 36 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.10.11-1 | 6.10.11-1 |
| debian/linux(Debian:14) | < 6.10.11-1 | 6.10.11-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-127.137 | 5.15.0-127.137 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1070.75 | 5.15.0-1070.75 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1066.69 | 5.15.0-1066.69 |
| Linux kernel | >= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, < 79cce5e81d20fa9ad553be439d665ac3302d3c95 | 79cce5e81d20fa9ad553be439d665ac3302d3c95 |
| Linux kernel | >= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, < 84175dc5b2c932266a50c04e5ce342c30f817a2f | 84175dc5b2c932266a50c04e5ce342c30f817a2f |
| Linux kernel | >= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, < eb7fc8b65cea22f9038c52398c8b22849e9620ea | eb7fc8b65cea22f9038c52398c8b22849e9620ea |
| Linux kernel | >= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, < e79050882b857c37634baedbdcf7c2047c24cbff | e79050882b857c37634baedbdcf7c2047c24cbff |
| Linux kernel | >= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9, < ea5ff5d351b520524019f7ff7f9ce418de2dad87 | ea5ff5d351b520524019f7ff7f9ce418de2dad87 |
| Linux kernel | = 5.11 | No fix listed |
| Linux kernel | < 5.15.168 | 5.15.168 |
| Linux kernel | < 6.1.111 | 6.1.111 |
| Linux kernel | < 6.6.52 | 6.6.52 |
| Linux kernel | < 6.10.11 | 6.10.11 |
| Linux kernel | < 6.11 | 6.11 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-50.51 | 6.8.0-50.51 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1016.18 | 6.8.0-1016.18 |
| debian linux | = 11.0 | No fix listed |
| Linux kernel | >= 5.11, < 5.15.168 | 5.15.168 |
| Linux kernel | >= 5.16, < 6.1.111 | 6.1.111 |
| Linux kernel | >= 6.2, < 6.6.52 | 6.6.52 |
| Linux kernel | >= 6.7, < 6.10.11 | 6.10.11 |
| Linux kernel | = 6.11-rc1 | No fix listed |
| Linux kernel | = 6.11-rc2 | No fix listed |
| Linux kernel | = 6.11-rc3 | No fix listed |
| Linux kernel | = 6.11-rc4 | No fix listed |
| Linux kernel | = 6.11-rc5 | No fix listed |
| Linux kernel | = 6.11-rc6 | No fix listed |
| Linux kernel | = 6.11-rc7 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-46852 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7154-1 vendor-advisory
- USN-7155-1 vendor-advisory
- USN-7156-1 vendor-advisory
- USN-7166-1 vendor-advisory
- USN-7166-2 vendor-advisory
- USN-7166-3 vendor-advisory
- USN-7154-2 vendor-advisory
- USN-7186-1 vendor-advisory
- USN-7186-2 vendor-advisory
- USN-7194-1 vendor-advisory
- USN-7196-1 vendor-advisory
- USN-7166-4 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list third-party-advisory
- ENISA EUVD EUVD-2024-42113 third-party-advisory