CVE-2025-40311
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
08/12/2025
Last modified:
08/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
accel/habanalabs: support mapping cb with vmalloc-backed coherent memory<br />
<br />
When IOMMU is enabled, dma_alloc_coherent() with GFP_USER may return<br />
addresses from the vmalloc range. If such an address is mapped without<br />
VM_MIXEDMAP, vm_insert_page() will trigger a BUG_ON due to the<br />
VM_PFNMAP restriction.<br />
<br />
Fix this by checking for vmalloc addresses and setting VM_MIXEDMAP<br />
in the VMA before mapping. This ensures safe mapping and avoids kernel<br />
crashes. The memory is still driver-allocated and cannot be accessed<br />
directly by userspace.



