cbcvebase.
CVE-2024-46852
published 2024-09-27

CVE-2024-46852: 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…

PriorityP341high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.21%
12.1th percentile
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.

Affected

26 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.112-1 (bookworm)linux 6.1.112-1 (bookworm)
debianlinux-6.1< linux 6.1.112-1 (bookworm)linux 6.1.112-1 (bookworm)
googleandroid
linuxlinux
linuxlinux>= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9 < 79cce5e81d20fa9ad553be439d665ac3302d3c9579cce5e81d20fa9ad553be439d665ac3302d3c95
linuxlinux>= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9 < 84175dc5b2c932266a50c04e5ce342c30f817a2f84175dc5b2c932266a50c04e5ce342c30f817a2f
linuxlinux>= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9 < eb7fc8b65cea22f9038c52398c8b22849e9620eaeb7fc8b65cea22f9038c52398c8b22849e9620ea
linuxlinux>= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9 < e79050882b857c37634baedbdcf7c2047c24cbffe79050882b857c37634baedbdcf7c2047c24cbff
linuxlinux>= a5d2d29e24be8967ef78a1b1fb2292413e3b3df9 < ea5ff5d351b520524019f7ff7f9ce418de2dad87ea5ff5d351b520524019f7ff7f9ce418de2dad87
linuxlinux_kernel
linuxlinux_kernel>= 0 < 6.1.112-16.1.112-1
linuxlinux_kernel>= 0 < 6.10.11-16.10.11-1
linuxlinux_kernel>= 0 < 6.10.11-16.10.11-1
linuxlinux_kernel>= 0 < 5.15.0-127.1375.15.0-127.137
linuxlinux_kernel>= 0 < 6.8.0-50.516.8.0-50.51
linuxlinux_kernel>= 5.11 < 5.15.1685.15.168
linuxlinux_kernel>= 5.16 < 6.1.1116.1.111
linuxlinux_kernel>= 6.2 < 6.6.526.6.52
linuxlinux_kernel>= 6.7 < 6.10.116.10.11
msrcazl3_kernel_6.6.51.1-5_on_azure_linux_3.0
msrcazl3_kernel_6.6.56.1-5_on_azure_linux_3.0
msrcazure_linux_3.0_arm
msrcazure_linux_3.0_x64
msrccbl2_kernel_5.15.176.3-1_on_cbl_mariner_2.0

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.