Skip to contentSkip to conversation

CVE-2026-98476: s390/cio: Fix NULL pointer dereference in ccw_device_get_util_str()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

lore
Share & tools
lore
#0 lore raw

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

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

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

s390/cio: Fix NULL pointer dereference in ccw_device_get_util_str()

The channel path registry entry associated with a CHPID may be removed while the subchannel's PMCW still references that CHPID. In this case, chpid_to_chp() can return NULL, leading to a NULL pointer dereference.

Add the missing NULL check before dereferencing the returned pointer.

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

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

	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 5.10.271 with commit 9d8b21820caed9128945fffcedf03e2a4c21eee2
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 5.15.222 with commit 5fc54e04dad90b15d0430118b3f288a1d64e66c9
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 6.1.189 with commit 27e396a89f76f742abdbe9f8c4a58a6e806fdf59
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 6.6.158 with commit dbf30e661ceb9a52c94c85719716391dcc29142a
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 6.12.112 with commit 5e006ac90a4d331db1dd712b91fec849b45ffc01
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 6.18.55 with commit c3bbcb32deecc06ebb1762398399b566d5ff2fc9
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 7.2.9 with commit 44b16b02608058fc72198ac0205969f0f43065df
	Issue introduced in 4.18 with commit 199652309a4d6635fca19d7528d73ab9e219bd9a and fixed in 7.3-rc5 with commit 5b76268dac968612f7283d59b539036de955b7d9

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-98476

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/s390/cio/device_ops.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/9d8b21820caed9128945fffcedf03e2a4c21eee2
	https://git.kernel.org/stable/c/5fc54e04dad90b15d0430118b3f288a1d64e66c9
	https://git.kernel.org/stable/c/27e396a89f76f742abdbe9f8c4a58a6e806fdf59
	https://git.kernel.org/stable/c/dbf30e661ceb9a52c94c85719716391dcc29142a
	https://git.kernel.org/stable/c/5e006ac90a4d331db1dd712b91fec849b45ffc01
	https://git.kernel.org/stable/c/c3bbcb32deecc06ebb1762398399b566d5ff2fc9
	https://git.kernel.org/stable/c/44b16b02608058fc72198ac0205969f0f43065df
	https://git.kernel.org/stable/c/5b76268dac968612f7283d59b539036de955b7d9