Skip to contentSkip to conversation

CVE-2026-68141: net/af_iucv: fix NULL deref in afiucv_hs_callback_syn()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 10

lore
Share & tools
lore
#0 lore raw

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

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

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

net/af_iucv: fix NULL deref in afiucv_hs_callback_syn()

afiucv_hs_callback_syn() allocates the child socket with GFP_ATOMIC. If the allocation fails, nsk is NULL.

The connection-refused path is entered when the listen state check fails, the accept backlog is full, or nsk is NULL. The code unconditionally calls iucv_sock_kill(nsk) in that path.

iucv_sock_kill() does not accept a NULL socket pointer and immediately dereferences sk via sock_flag(sk, SOCK_ZAPPED). When nsk is NULL, calling iucv_sock_kill(nsk) results in a NULL pointer dereference.

Only call iucv_sock_kill() when a child socket was successfully allocated.

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

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

	Issue introduced in 3.2 with commit 3881ac441f642d56503818123446f7298442236b and fixed in 6.6.148 with commit 8bb111f87ded6acb9837ec9b45d6f02cda94c51f
	Issue introduced in 3.2 with commit 3881ac441f642d56503818123446f7298442236b and fixed in 6.12.101 with commit 46453b16f38ec7147351f7447e2aec6ea330f7b3
	Issue introduced in 3.2 with commit 3881ac441f642d56503818123446f7298442236b and fixed in 6.18.42 with commit 33736ff5e7c97d3348ce812e8bd2e125d840743c
	Issue introduced in 3.2 with commit 3881ac441f642d56503818123446f7298442236b and fixed in 7.1.6 with commit 0e857185591fe79934427c9c0c1c31dc776be134
	Issue introduced in 3.2 with commit 3881ac441f642d56503818123446f7298442236b and fixed in 7.2-rc5 with commit 47a5116e56a6b6fe1e909f244e39cd0fc26ceee4

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

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:
net/iucv/af_iucv.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/8bb111f87ded6acb9837ec9b45d6f02cda94c51f
	https://git.kernel.org/stable/c/46453b16f38ec7147351f7447e2aec6ea330f7b3
	https://git.kernel.org/stable/c/33736ff5e7c97d3348ce812e8bd2e125d840743c
	https://git.kernel.org/stable/c/0e857185591fe79934427c9c0c1c31dc776be134
	https://git.kernel.org/stable/c/47a5116e56a6b6fe1e909f244e39cd0fc26ceee4