What’s Vulnerable › Vulnerabilities
CVE-2025-39699: iommu/riscv: prevent NULL deref in iova_to_phys
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-05 · updated 2026-10-19
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 6.13 before 6.16.4; 6.17-rc1, 6.17-rc2 — fixed in 6.16.4
How to fix
Upgrade to a fixed version: Linux kernel 6.16.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/220c491490255b656672bb572b18460cd9155926
- https://git.kernel.org/stable/c/99d4d1a070870aa08163af8ce0522992b7f35d8c
Get alerted when CVE-2025-39699 or the next vulnerability affects your stack