KernelScan.io

HIGH Introduced in 3.2

iucv WindowUpdate Race

CVE-2026-99133

CVSS 7.9 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: net/iucv: fix the recvmsg window update iucv_sock_recvmsg() sends the HiperSockets-only AF_IUCV_FLAG_WIN without testing the transport, so on a classic z/VM socket iucv_send_ctrl() sizes the skb through a NULL iucv->hs_dev. SO_MSGLIMIT accepts 1, so msglimit / 2 is zero and one recvmsg() on its own socket is enough for an unprivileged process to take a spurious disconnect. It also calls iucv_send_ctrl() under spin_lock_bh(&message_q.lock), which allocates GFP_KERNEL inside a section the code treats as atomic. Sending outside that lock lets two recvmsg() reach afiucv_hs_send() at once, where msg_recv is sampled for the advertised window and subtracted after dev_queue_xmit() -- and sendmsg reaches that counter under lock_sock() while recvmsg holds no socket lock, so both can subtract the same value, the counter goes negative and the credit reaches the peer twice. Test the transport, claim the credit with atomic_xchg() after the last error exit and hand it back if the transmit fails, and send once the lock is dropped.

02

Engine v0.9.0

Risk summary

An unprivileged local process on s390 systems with IUCV support can trigger a race condition in the AF_IUCV socket recvmsg path, causing a receive-window counter to underflow and credit to be advertised twice. This memory corruption primitive can lead to privilege escalation or kernel crash. The same code path also dereferences a NULL pointer on classic z/VM sockets, allowing immediate denial of service.

Affectednet/iucv/af_iucv.c (AF_IUCV socket subsystem)

Vulnerability analysis

The AF_IUCV socket implementation incorrectly sends a HiperSockets-only window-update flag without verifying the transport type, causing a NULL pointer dereference on classic z/VM sockets when the HiperSockets device pointer is accessed. Additionally, the window-update logic runs under a spinlock that cannot sleep, yet it invokes a function that allocates memory with GFP_KERNEL. Moving the transmit outside the lock exposes a race where two concurrent recvmsg() calls both read the receive-credit counter, subtract the same value, and drive the counter negative — effectively granting the peer double credit. The fix guards the window update with a transport check, claims the credit atomically with atomic_xchg() after all error paths, returns the credit on transmit failure, and performs the send after releasing the lock. An unprivileged local user who can create an AF_IUCV socket (SO_MSGLIMIT as low as 1 is sufficient) can trigger both the NULL dereference and the race condition.

03

BranchIntroducedFixed inPatch commit
5.153.25.15.22401123990f59c
6.13.26.1.1911ebe68bbf8e7
6.123.26.12.115ce8aac3eb57f
6.183.26.18.598f2efa742f4c
6.63.26.6.16123e7fbbdca5a
7.23.27.2.13fe7393a627db
mainline3.27.3fa5acd038ea6

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.114-cip34)
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)