data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2025-40311 in the interactive tracker

CVE-2025-40311

accel/habanalabs: support mapping cb with vmalloc-backed coherent memory

EPSS 0.2%

Published 2025-12-08 (10 months ago) by the Linux kernel CNA. Subsystem drivers/accel. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2025-40311 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixed6.12.63-1Update the kernel and reboot. Fixed in 6.12.63-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed6.17.8-1Update the kernel and reboot. Fixed in 6.17.8-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.17.8-1Update the kernel and reboot. Fixed in 6.17.8-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

When IOMMU is enabled, dma_alloc_coherent() with GFP_USER may return addresses from the vmalloc range. If such an address is mapped without VM_MIXEDMAP, vm_insert_page() will trigger a BUG_ON due to the VM_PFNMAP restriction. Fix this by checking for vmalloc addresses and setting VM_MIXEDMAP in the VMA before mapping. This ensures safe mapping and avoids kernel crashes. The memory is still driver-allocated and cannot be accessed directly by userspace.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

drivers/accel/habanalabs/gaudi/gaudi.c
drivers/accel/habanalabs/gaudi2/gaudi2.c

What this is
HABANALABS PCI DRIVERMAINTAINERS section matched on drivers/accel/habanalabs/ · dri-devel@lists.freedesktop.org · Supported
Show whether Debian builds this, per release

Not established. This site could not find the build rule for the affected file in the kernel trees Debian ships, so it has no answer about whether Debian compiles this code. Read that as unknown, never as absent.

  • bookworm, trixie, forky, sid?
?
not established - no Makefile entry for the affected file

Where a release above reads "not established", no build rule for the affected file was found in that release's kernel tree. That is a gap in this lookup, not a finding that the code is absent.

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS

Signals

Published
2025-12-08 (10 months ago)source
CVSS
no vector published, unrated
Attack vector
not published
EPSS
0.19%, higher than 7.6% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
drivers/accel

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
5.86.6.1177ec8ac9f73d4
5.86.12.58d1dfe21a332d
5.86.17.873c7c2cdb442
5.86.18513024d5a0e3

Why the CNA scored it this way

The kernel CNA published no CVSS vector and no reasoning for CVE-2025-40311, which is why it is shown as unrated rather than given an invented score. 6,405 of the 20,413 CVEs here carry reasoning; this is not one of them.