VYPR
High severity7.8NVD Advisory· Published Sep 27, 2024· Updated May 5, 2026

CVE-2024-46852

CVE-2024-46852

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 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 products

10
  • cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • Linux/Kernel8 versions
    cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*+ 7 more
    • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*range: >=5.11,<5.15.168
    • cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.11:rc3:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.11:rc4:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.11:rc5:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.11:rc6:*:*:*:*:*:*
    • cpe:2.3:o:linux:linux_kernel:6.11:rc7:*:*:*:*:*:*
  • Linux/Linuxv5
    Range: 5.11

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.