First published: Fri Sep 27 2024(Updated: )
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.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel | >=5.11<6.1.111 | |
Linux Kernel | >=6.2<6.6.52 | |
Linux Kernel | >=6.7<6.10.11 | |
Linux Kernel | =6.11-rc1 | |
Linux Kernel | =6.11-rc2 | |
Linux Kernel | =6.11-rc3 | |
Linux Kernel | =6.11-rc4 | |
Linux Kernel | =6.11-rc5 | |
Linux Kernel | =6.11-rc6 | |
Linux Kernel | =6.11-rc7 | |
debian/linux | 5.10.223-1 5.10.226-1 6.1.123-1 6.1.128-1 6.12.12-1 6.12.13-1 | |
debian/linux-6.1 | 6.1.119-1~deb11u1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-46852 has not been assigned a CVSS score yet, but it addresses a critical off-by-one error in the Linux kernel's CMA heap fault handler.
To mitigate CVE-2024-46852, update your Linux kernel to a patched version such as 5.10.223-1, 5.10.226-1, 6.1.123-1, or 6.12.11-1.
CVE-2024-46852 affects Linux kernel versions between 5.11 and 6.6.52, as well as several release candidates of 6.11.
CVE-2024-46852 can potentially allow an attacker to exploit memory handling issues in kernel space, leading to privilege escalation.
Currently, the recommended resolution for CVE-2024-46852 is to apply the latest security patches rather than relying on workarounds.