Skip to contentSkip to conversation

CVE-2026-98593: s390/debug: Fix NULL pointer dereference in debug_info_copy()

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/debug: Fix NULL pointer dereference in debug_info_copy()

When debug_register_static() fails, it clears areas, active_pages and active_entries but leaves the area bounds unchanged. Copying such an area, either by opening its view file or via debug_dump(), makes debug_info_copy() dereference the NULL pointers.

Skip the copy loop when the source has no areas.

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

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

	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 5.15.222 with commit 13decd3b3b3a4d8a2e603fb8c9ffde0c6be3c225
	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 6.1.189 with commit a19bede30f0da5ae56782edac62b5998a7434cba
	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 6.6.158 with commit 33f706884821da9cb55b650b7b1d4f2bdf800137
	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 6.12.112 with commit 2de9c458cc49d8db6408a7c5fbf0c7c94fe4d52b
	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 6.18.55 with commit 9c6af88fbefbe77608b77409df23a1617e28398c
	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 7.2.9 with commit c593f38e1cdb92f87d01be4c4e5ac12417b1454b
	Issue introduced in 5.15 with commit d72541f945127b4873dace501406a1bc8cd8e1e9 and fixed in 7.3-rc5 with commit 012bfcd5a51082d5a65f096dfb9ca652b5267965

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

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:

	arch/s390/kernel/debug.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/13decd3b3b3a4d8a2e603fb8c9ffde0c6be3c225
	https://git.kernel.org/stable/c/a19bede30f0da5ae56782edac62b5998a7434cba
	https://git.kernel.org/stable/c/33f706884821da9cb55b650b7b1d4f2bdf800137
	https://git.kernel.org/stable/c/2de9c458cc49d8db6408a7c5fbf0c7c94fe4d52b
	https://git.kernel.org/stable/c/9c6af88fbefbe77608b77409df23a1617e28398c
	https://git.kernel.org/stable/c/c593f38e1cdb92f87d01be4c4e5ac12417b1454b
	https://git.kernel.org/stable/c/012bfcd5a51082d5a65f096dfb9ca652b5267965