CVE-2025-39699 iommu/riscv: prevent NULL deref in iova_to_phys
A missing NULL check in the RISC-V IOMMU driver allows attackers to trigger a kernel crash via denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-39699?
CVE-2025-39699 is a medium-severity vulnerability in Linux kernel, published on 5 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
iommu/riscv: prevent NULL deref in iova_to_phys
The riscv_iommu_pte_fetch() function returns either NULL for unmapped/never-mapped iova, or a valid leaf pte pointer that requires no further validation.
riscv_iommu_iova_to_phys() failed to handle NULL returns. Prevent null pointer dereference in riscv_iommu_iova_to_phys(), and remove the pte validation.
Weakness: CWE-476
Which versions are affected by CVE-2025-39699?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-39699?
Apply the vendor's patch.
Is CVE-2025-39699 being exploited?
There is no known exploitation of CVE-2025-39699 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-39699, DEBIAN-CVE-2025-39699, GHSA-mr69-6c22-jgq8, UBUNTU-CVE-2025-39699.