{"id":"CVE-2025-40311","published":"2025-12-08T00:46:36Z","modified":"2026-10-30T12:22:59Z","title":"accel/habanalabs: support mapping cb with vmalloc-backed coherent memory","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\naccel/habanalabs: support mapping cb with vmalloc-backed coherent memory\n\nWhen IOMMU is enabled, dma_alloc_coherent() with GFP_USER may return\naddresses from the vmalloc range. If such an address is mapped without\nVM_MIXEDMAP, vm_insert_page() will trigger a BUG_ON due to the\nVM_PFNMAP restriction.\n\nFix this by checking for vmalloc addresses and setting VM_MIXEDMAP\nin the VMA before mapping. This ensures safe mapping and avoids kernel\ncrashes. The memory is still driver-allocated and cannot be accessed\ndirectly by userspace.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00207,"percentile":0.1082,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8de421db5b1b2b37e9643ea7f6ade90fd756892d","tags":[]},{"url":"https://git.kernel.org/stable/c/7ec8ac9f73d4a9438c2186768d6de27ace37531e","tags":[]},{"url":"https://git.kernel.org/stable/c/d1dfe21a332d38a6a09658ec29a55940afb5fe36","tags":[]},{"url":"https://git.kernel.org/stable/c/73c7c2cdb442fc4160d2a2a4bfffbd162af06cb9","tags":[]},{"url":"https://git.kernel.org/stable/c/513024d5a0e34fd34247043f1876b6138ca52847","tags":[]}],"priority":{"score":2.2,"factors":[{"name":"EPSS percentile","points":2.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 8de421db5b1b2b37e9643ea7f6ade90fd756892d",">= ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 7ec8ac9f73d4a9438c2186768d6de27ace37531e",">= ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < d1dfe21a332d38a6a09658ec29a55940afb5fe36",">= ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 73c7c2cdb442fc4160d2a2a4bfffbd162af06cb9",">= ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 513024d5a0e34fd34247043f1876b6138ca52847"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"euvd":{"id":"EUVD-2025-201634","exploited":false,"provenance":"source"}}