VDB

CVE-2026-64109

CVE-2026-64109 PUBLISHED CVSS 8.8 HIGH

af_unix: Fix UAF read of tail->len in unix_stream_data_wait()

Reported by linux · Published July 19, 2026

In the Linux kernel, the following vulnerability has been resolved: af_unix: Fix UAF read of tail->len in unix_stream_data_wait() unix_stream_data_wait() does skb_peek_tail(&sk->sk_receive_queue) without holding any lock that prevents SKBs on that queue from being dequeued and freed. This has been the case since commit 79f632c71bea ("unix/stream: fix peeking with an offset larger than data in queue"). The first consequence of this is that the pointer comparison `tail != last` can be false even if `last` semantically refers to an already-freed SKB while `tail` is a new SKB allocated at the same address; which can cause unix_stream_data_wait() to wrongly keep blocking after new data has arrived, but only in a weird scenario where a peeking recv() and a normal recv() on the same socket are racing, which is probably not a real problem. But since commit 2b514574f7e8 ("net: af_unix: implement splice for stream af_unix sockets"), `tail` is actually dereferenced, which can cause UAF in the following race scenario (where test_setup() runs single-threaded, and afterwards, test_thread1() and test_thread2() run concurrently in two threads: ``` static int socks[2]; void test_setup(void) { socketpair(AF_UNIX, SOCK_STREAM, 0, socks); send(socks[1], "A", 1, 0); int peekoff = 1; setsockopt(socks[0], SOL_SOCKET, SO_PEEK_OFF, &peekoff, sizeof(peekoff)); } void test_thread1(void) { char dummy; recv(socks[0], &dummy, 1, MSG_PEEK); } void test_thread2(void) { char dummy; recv(socks[0], &dummy, 1, 0); shutdown(socks[1], SHUT_WR); } ``` when racing like this: ``` thread1 thread2 unix_stream_read_generic mutex_lock(&u->iolock) skb_peek(&sk->sk_receive_queue) skb_peek_next(skb, &sk->sk_receive_queue) mutex_unlock(&u->iolock) unix_stream_read_generic unix_state_lock(sk) skb_peek(&sk->sk_receive_queue) unix_state_unlock(sk) unix_stream_data_wait unix_state_lock(sk) tail = skb_peek_tail(&sk->sk_receive_queue) spin_lock(&sk->sk_receive_queue.lock) __skb_unlink(skb, &sk->sk_receive_queue) spin_unlock(&sk->sk_receive_queue.lock) consume_skb(skb) [frees the SKB] `tail != last`: false `tail`: true `tail->len != last_len` ***UAF*** ``` Fix the UAF by removing the read of tail->len; checking tail->len would only make sense if SKBs in the receive queue of a UNIX socket could grow, which can no longer happen. Kuniyuki explained: > When commit 869e7c62486e ("net: af_unix: implement stream sendpage > support") added sendpage() support, data could be appended to the last > skb in the receiver's queue. > > That's why we needed to check if the length of the last skb was changed > while waiting for new data in unix_stream_data_wait(). > > However, commit a0dbf5f818f9 ("af_unix: Support MSG_SPLICE_PAGES") and > commit 57d44a354a43 ("unix: Convert unix_stream_sendpage() to use > MSG_SPLICE_PAGES") refactored sendmsg(), and now data is always added > to a new skb. That means this fix is not suitable for kernels before 6.5.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-debuginfo-common-s390xerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.s390x
kernel-docerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.noarch
kernel-tools-debuginfoerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.ppc64le, 0:6.12.0-211.69.1.el10_2.aarch64
kernel-debug-modules-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.s390x
kernel-rt-64k-debug-modules-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernelerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.src, 0:6.12.0-211.69.1.el10_2.aarch64
kernel-debug-debuginfoerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.x86_64
kernel-rt-64k-debug-coreerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64
kernel-debugerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.ppc64le
perf-debuginfoerrata.rockylinux.org0:6.12.0-211.69.1.el10_2.ppc64le
libperferrata.rockylinux.org0:6.12.0-211.69.1.el10_2.x86_64
kernel-rt-moduleserrata.rockylinux.org0:6.12.0-211.69.1.el10_2.aarch64

5 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
LinuxLinux2b514574f7e88c8498027ee366fd6e7aae5aa4b5, 2b514574f7e88c8498027ee366fd6e7aae5aa4b5, 2b514574f7e88c8498027ee366fd6e7aae5aa4b5
LinuxLinux4.2, 0, 6.6.143
LinuxLinux2b514574f7e88c8498027ee366fd6e7aae5aa4b5, 7.1, 7.0.11
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-devel0
linuxlinux_kernel4.2, 4.2, 4.2
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.120
amazon:2023python3-perf6.180
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.18.35-68.1270
amazon:2023kernel6.12-headers0
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel-livepatch-6.12.92-122.1660
amazon:2023python3-perf6.120
amazon:2023perf6.180
amazon:2023kernel6.120
amazon:2023kernel6.180

…and 7 more

Timeline

  • Jul 19, 2026 CVE Published
  • Jul 20, 2026 Coalition ESS Score
  • Jul 20, 2026 Security Advisory (32 in total, the first dated here)
  • Aug 7, 2026 EPSS Score (8 in total, the first dated here)
  • Aug 9, 2026 CVE Updated
  • Aug 12, 2026 Distribution Patch (32 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-64109
vulnetix vdb fixes CVE-2026-64109

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64109/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›