# CVE-2025-39699: iommu/riscv: prevent NULL deref in iova_to_phys

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-02)
- Published: 2025-09-05T17:21:05.379Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 488ffbf181718b9ad8c1838cb249d60973e78eda before 220c491490255b656672bb572b18460cd9155926; from 488ffbf181718b9ad8c1838cb249d60973e78eda before 99d4d1a070870aa08163af8ce0522992b7f35d8c; 6.13 (not affected: before 6.13; from 6.16.4 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.13 before 6.16.4; 6.17

## References

- <https://git.kernel.org/stable/c/220c491490255b656672bb572b18460cd9155926> (patch)
- <https://git.kernel.org/stable/c/99d4d1a070870aa08163af8ce0522992b7f35d8c> (patch)

## Sources

- CVE List: [CVE-2025-39699](https://www.cve.org/CVERecord?id=CVE-2025-39699), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39699](https://nvd.nist.gov/vuln/detail/CVE-2025-39699), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39699 · Whole record: https://cve.day/CVE-2025-39699.json · Rebuilt by cve.day 2026-11-25T22:59:04.268Z
