Skip to contentSkip to conversation

CVE-2026-97593: iommu/s390: Fix NULL dereference in iova_to_phys() with ZPCI_TABLE_TYPE_RFX

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

iommu/s390: Fix NULL dereference in iova_to_phys() with ZPCI_TABLE_TYPE_RFX

When using a 5-level translation table via ZPCI_TABLE_TYPE_RFX get_rso_from_iova() returns NULL when the region-first entry is invalid. Yet in get_rto_from_iova() the region-second origin rso is not checked to be non-NULL before accessing rso[rsx] leading to a NULL pointer dereference instead of a NULL return when iova_to_phys() is called on a unmapped IOVA. Fix this by adding the missing NULL check.

The Linux kernel CVE team has assigned CVE-2026-97593 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit 81244074b518aeb90de5f68e7e825564c29c5c50 and fixed in 6.18.53 with commit d0502ed0a1aae97e2ab7a21545903ba612d9f02e
	Issue introduced in 6.16 with commit 81244074b518aeb90de5f68e7e825564c29c5c50 and fixed in 7.2.7 with commit 41b5e0ce6801bf04d8fd3bca46e8c393349ebd5c
	Issue introduced in 6.16 with commit 81244074b518aeb90de5f68e7e825564c29c5c50 and fixed in 7.3-rc3 with commit 20db6573301e66cd65ebf6c130b6563c69374d9d

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97593

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/iommu/s390-iommu.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/d0502ed0a1aae97e2ab7a21545903ba612d9f02e
	https://git.kernel.org/stable/c/41b5e0ce6801bf04d8fd3bca46e8c393349ebd5c
	https://git.kernel.org/stable/c/20db6573301e66cd65ebf6c130b6563c69374d9d