Skip to contentSkip to conversation

CVE-2026-99124: s390/pci: Fix leak of uninitialized kernel data in SCLP report

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 28

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/pci: Fix leak of uninitialized kernel data in SCLP report

While report_error_write() checks that the provided buffer is at least as large as the header struct, but not that it is large enough to contain the report with the length claimed by report->length. If user-space provides a short buffer, meaning a larger report->length than the actually written payload, up to around 4K of kernel data from past the kmalloc(len + 1) sized buffer allocated in kernfs_fop_write_iter() will leak into the SCLP report.

However, as the entity processing the SCLP is privileged and able to access at least the page including the report, this does not leak data that entity could not access but it is still an out of bounds read and a malformed error report that should be rejected.

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

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

	Issue introduced in 4.7 with commit 368704a65be8620df795ccbeb44e025dafbc3e1f and fixed in 6.18.59 with commit ba5001db9bb23ff7d2ea328c405c287ffb07786f
	Issue introduced in 4.7 with commit 368704a65be8620df795ccbeb44e025dafbc3e1f and fixed in 7.2.13 with commit 126a7c227d8543e13903dd5622640c1f0fcc5a16
	Issue introduced in 4.7 with commit 368704a65be8620df795ccbeb44e025dafbc3e1f and fixed in 7.3 with commit 8ac60ae2a307a50b599bf5d300b448d638f3ba29

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

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/pci/pci_sysfs.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/ba5001db9bb23ff7d2ea328c405c287ffb07786f
	https://git.kernel.org/stable/c/126a7c227d8543e13903dd5622640c1f0fcc5a16
	https://git.kernel.org/stable/c/8ac60ae2a307a50b599bf5d300b448d638f3ba29