CVE-2026-64004: net/iucv: fix locking in .getsockopt
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/iucv: fix locking in .getsockopt
Mirror iucv_sock_setsockopt() and wrap the whole switch in lock_sock()/release_sock(). The pre-existing SO_MSGLIMIT-only lock becomes redundant and is removed.
Any AF_IUCV HIPER user can potentially crash the kernel by racing recvmsg() with getsockopt(SO_MSGSIZE): the SO_MSGSIZE arm dereferences iucv->hs_dev->mtu after iucv_sock_close() (called from the racing recvmsg()) has set hs_dev to NULL, producing a NULL pointer dereference oops.
The Linux kernel CVE team has assigned CVE-2026-64004 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 5.10.259 with commit 884eb247b74d86db97e3a37f0d6fc8e1e83590dd Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 5.15.210 with commit 45bb8de8c95d8899f4b8f61bd9bceb8132af73cb Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 6.1.176 with commit 1fc30bd4e55e2dd622d2d366cecd732c1841bbee Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 6.6.143 with commit cd691beafea0dd779e69e81ccc26b0ab50efcb5e Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 6.12.93 with commit 6e792b8dd3002bbc4136745928a9605df1a72b8a Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 6.18.35 with commit 9817369243380e287ebe5525411557eaa3aa2a79 Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 7.0.12 with commit 69554adc7a6fa04ede3ad7512321d83748e3c920 Issue introduced in 3.4 with commit 51363b8751a673a00ad48eea895266396d53fa52 and fixed in 7.1 with commit 3589d20a666caf30ad100c960a2de7de390fce88
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-64004
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/884eb247b74d86db97e3a37f0d6fc8e1e83590dd https://git.kernel.org/stable/c/45bb8de8c95d8899f4b8f61bd9bceb8132af73cb https://git.kernel.org/stable/c/1fc30bd4e55e2dd622d2d366cecd732c1841bbee https://git.kernel.org/stable/c/cd691beafea0dd779e69e81ccc26b0ab50efcb5e https://git.kernel.org/stable/c/6e792b8dd3002bbc4136745928a9605df1a72b8a https://git.kernel.org/stable/c/9817369243380e287ebe5525411557eaa3aa2a79 https://git.kernel.org/stable/c/69554adc7a6fa04ede3ad7512321d83748e3c920 https://git.kernel.org/stable/c/3589d20a666caf30ad100c960a2de7de390fce88