CVE-2026-98394: af_unix: Return immediately when manage_oob() returns NULL for 0-length buffer.
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
af_unix: Return immediately when manage_oob() returns NULL for 0-length buffer.
Fahad Alharbi reported that recv(0, MSG_PEEK) triggers busy-wait in unix_stream_read_generic() if recv() is blocking and the last skb in the queue is MSG_OOB skb.
In such a situation, TCP returns 0 immediately regardless of blocking or non-blocking.
Let's follow the behaviour.
The Linux kernel CVE team has assigned CVE-2026-98394 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 6.12.111 with commit 3d3c7a3df66b2ca3d2cd1a2a0c37eb701feba713 Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 6.18.53 with commit d5dd55b316ca229a4cbf11729483ba5bb57233e7 Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 7.2.7 with commit c81c5be3826c8467945b964d0cf7f7b3d65461db Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 7.3-rc3 with commit 6e5ee08eb5858d175da6768d75d163817b6a9d4a
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-98394
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/unix/af_unix.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/3d3c7a3df66b2ca3d2cd1a2a0c37eb701feba713 https://git.kernel.org/stable/c/d5dd55b316ca229a4cbf11729483ba5bb57233e7 https://git.kernel.org/stable/c/c81c5be3826c8467945b964d0cf7f7b3d65461db https://git.kernel.org/stable/c/6e5ee08eb5858d175da6768d75d163817b6a9d4a