# CVE-2025-39939: iommu/s390: Fix memory corruption when using identity domain

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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-01)
- Published: 2025-10-04T07:31:02.521Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iommu/s390: Fix memory corruption when using identity domain

zpci_get_iommu_ctrs() returns counter information to be reported as part
of device statistics; these counters are stored as part of the s390_domain.
The problem, however, is that the identity domain is not backed by an
s390_domain and so the conversion via to_s390_domain() yields a bad address
that is zero'd initially and read on-demand later via a sysfs read.
These counters aren't necessary for the identity domain; just return NULL
in this case.

This issue was discovered via KASAN with reports that look like:
BUG: KASAN: global-out-of-bounds in zpci_fmb_enable_device
when using the identity domain for a device on s390.

(As written by CVE List.)

## Affected

- Linux Linux: from 64af12c6ec3afd7d44bc8b2044eee59f98059087 before 17a58caf3863163c4a84a218a9649be2c8061443; from 64af12c6ec3afd7d44bc8b2044eee59f98059087 before b3506e9bcc777ed6af2ab631c86a9990ed97b474; 6.15 (not affected: before 6.15; from 6.16.9 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.15 before 6.16.9; 6.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/17a58caf3863163c4a84a218a9649be2c8061443> (patch)
- <https://git.kernel.org/stable/c/b3506e9bcc777ed6af2ab631c86a9990ed97b474> (patch)

## Sources

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

---

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