Skip to contentSkip to conversation

CVE-2026-99126: s390/ctcm: Prevent XID null dereference

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/ctcm: Prevent XID null dereference

The mpc_validate_xid() function sets grp->saved_xid2->xid2_flag2 to 0x40 to signal XID validation error. If peer XID is NULL or r/w channel pairing mismatch happens, grp->saved_xid2 is never initialized. An attempt to set the flag in such case leads to NULL dereference.

Fix this by using the always available priv->xid->xid2_flag2 instead of grp->saved_xid2->xid2_flag2 for validation errors.

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

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

	Issue introduced in 2.6.26 with commit 293d984f0e3604c04dcdbf00117ddc1e5d4b1909 and fixed in 6.18.59 with commit 34fa3607b7604b3052b19cec8b0ad644818cdd2a
	Issue introduced in 2.6.26 with commit 293d984f0e3604c04dcdbf00117ddc1e5d4b1909 and fixed in 7.2.13 with commit 8a2f7a4ad1d81612fa65bfa4d392ba1bb2f5eeab
	Issue introduced in 2.6.26 with commit 293d984f0e3604c04dcdbf00117ddc1e5d4b1909 and fixed in 7.3 with commit b264d8422779d69febce914efc47a92a85cc382c

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

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/net/ctcm_mpc.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/34fa3607b7604b3052b19cec8b0ad644818cdd2a
	https://git.kernel.org/stable/c/8a2f7a4ad1d81612fa65bfa4d392ba1bb2f5eeab
	https://git.kernel.org/stable/c/b264d8422779d69febce914efc47a92a85cc382c