Skip to contentSkip to conversation

CVE-2026-52928: af_unix: Reject SIOCATMARK on non-stream sockets

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

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

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

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

af_unix: Reject SIOCATMARK on non-stream sockets

SIOCATMARK reports whether the receive queue is at the urgent mark for MSG_OOB.

In AF_UNIX, MSG_OOB is supported only for SOCK_STREAM sockets. SOCK_DGRAM and SOCK_SEQPACKET reject MSG_OOB in sendmsg() and recvmsg(), so they should not support SIOCATMARK either.

Return -EOPNOTSUPP for non-stream sockets before checking the receive queue.

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

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

	Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 6.12.88 with commit 645b1ed3259af38b7814242a420bc2081bdd1eb6
	Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 6.18.30 with commit c34c41446acf6c0d13b5b06c809be11e0f7f2729
	Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 7.0.7 with commit 3147ddf5a41c20c45c2eb69e00b62f10f822056a
	Issue introduced in 5.15 with commit 314001f0bf927015e459c9d387d62a231fe93af3 and fixed in 7.1 with commit d119775f2bad827edc28071c061fdd4a91f889a5

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

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/645b1ed3259af38b7814242a420bc2081bdd1eb6
	https://git.kernel.org/stable/c/c34c41446acf6c0d13b5b06c809be11e0f7f2729
	https://git.kernel.org/stable/c/3147ddf5a41c20c45c2eb69e00b62f10f822056a
	https://git.kernel.org/stable/c/d119775f2bad827edc28071c061fdd4a91f889a5