VDB

CVE-2026-90138

CVE-2026-90138 PUBLISHED

vsock: don't check the listener's sk_err in vsock_accept()

Reported by linux · Published September 17, 2026

In the Linux kernel, the following vulnerability has been resolved: vsock: don't check the listener's sk_err in vsock_accept() Syzbot reported an issue which can be reproduced with these steps: r0 = socket(AF_VSOCK, SOCK_STREAM, 0) bind(r0, {VMADDR_CID_ANY, PORT}) connect(r0, {VMADDR_CID_LOCAL, PORT}) -> -1, EPROTO (self-connect) listen(r0, backlog) -> 0 r1 = socket(AF_VSOCK, SOCK_STREAM, 0) connect(r1, {VMADDR_CID_LOCAL, PORT}) -> 0 accept(r0) -> -1, EPROTO (stale sk_err) Basically, it creates a socket (r0) and triggers a self-connect after binding it. This self-connect fails with EPROTO because it loops back to r0 while the socket is still in the TCP_SYN_SENT state, causing it to be incorrectly dispatched to the connecting-client path. The unexpected packet type encountered there sets sk_err to EPROTO. After that, it invokes a listen() call on the same socket. This listen() call succeeds because the kernel's listening path never inspects or clears sk_err. Then, a new socket (r1) is created as a normal client and connects to r0. However, vsock_accept() rejects this incoming connection because the listener's sk_err still holds the EPROTO error from the earlier failed self-connect. This rejection causes the child socket created for r1's connection to never be freed on virtio or hyperv transports; only the VMCI transport implements pending_work to revisit and clean up a rejected socket. For a non-blocking connect(), vsock_connect() may return -EINPROGRESS immediately, and vsock_connect_timeout() can later set sk->sk_err asynchronously. Since no vsock transport ever sets sk_err on a socket while it is in TCP_LISTEN state, checking it in vsock_accept() serves no purpose and only carries forward errors left behind by earlier, unrelated connection attempts on the same socket. Remove the checks so accept() no longer rejects valid incoming connections because of a stale error, which also avoids the resource leak described above.

EPSS 0.23% · 13.5th percentile

Fixed versions

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

PackageEcosystemFixed in
kernel6.18-modules-extra-commonAmazon Linux1:6.18.54-121.166.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.110-135.201.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.54-121.166.amzn2023
bpftool6.18Amazon Linux1:6.18.54-121.166.amzn2023
kernel6.18-develAmazon Linux1:6.18.54-121.166.amzn2023

Risk scores

EPSS Score
0.23%
13.5th percentile

Affected products

VendorProductVersions
LinuxLinuxd021c344051af91f42c5ba9fdedc176740cbd238, d021c344051af91f42c5ba9fdedc176740cbd238, d021c344051af91f42c5ba9fdedc176740cbd238
LinuxLinux3.9, 0, 6.1.191
amazon:2023kernel6.18-modules-extra-common0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.18-modules-extra0
amazon:2023bpftool6.180
amazon:2023kernel6.18-devel0
linuxlinux_kernel3.9, 3.9, 3.9
amazon:2023kernel6.12-modules-extra-common0
amazon:2023perf6.180
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.18-tools0
amazon:2023bpftool6.120
amazon:2023kernel6.12-devel0
amazon:2023perf6.120
amazon:2023kernel6.18-tools-devel0
amazon:2023kernel6.120
amazon:2023python3-perf6.180
amazon:2023kernel6.12-headers0
amazon:2023kernel-livepatch-6.12.110-135.2010

…and 7 more

Timeline

  • Sep 17, 2026 CVE Published
  • Sep 18, 2026 EPSS Score (13 in total, the first dated here)
  • Sep 18, 2026 Coalition ESS Score
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-90138
vulnetix vdb fixes CVE-2026-90138

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-90138/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 ›