# CVE-2026-64115: vsock/vmci: fix UAF when peer resets connection during handshake

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-19T15:40:15.513Z
- Modified: 2026-10-19T21:17:24.263Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

vsock/vmci: fix UAF when peer resets connection during handshake

vmci_transport_recv_connecting_server() returned err = 0 for a peer
RST in its default switch arm:

	err = pkt->type == VMCI_TRANSPORT_PACKET_TYPE_RST ? 0 : -EINVAL;

That made vmci_transport_recv_listen() skip vsock_remove_pending(),
leaving the pending socket on the listener's pending_links with
sk_state = TCP_CLOSE while destroy: still dropped the explicit
reference taken before schedule_delayed_work().

One second later vsock_pending_work() observed is_pending=true and
performed full cleanup: vsock_remove_pending() then the two trailing
sock_put(sk) calls -- the first reached refcount 0 and __sk_freed
the socket, and the second wrote into the freed object:

  BUG: KASAN: slab-use-after-free in refcount_warn_saturate
  Write of size 4 at addr ffff88800b1cac80 by task kworker
  Workqueue: events vsock_pending_work

Treat peer RST like any other unexpected packet type (err = -EINVAL).
All destroy: arms now return err < 0, so vmci_transport_recv_listen()
removes pending from pending_links synchronously and
vsock_pending_work() takes the is_pending=false / !rejected branch,
dropping only its own work reference.  This also closes the
multi-packet race Sashiko reported on v2: pending is removed from
the list before any subsequent packet can find it.

The pre-existing sk_acceptq_removed() gap on the err < 0 path of
vmci_transport_recv_listen() that Sashiko also noted is not
introduced or changed by this patch.

Tested on lts-6.12.79 with KASAN: 52/100 unpatched -> 0/100 patched.

(As written by CVE List.)

## Affected

- Linux Linux: from d021c344051af91f42c5ba9fdedc176740cbd238 before 1e19f08552b90070ed18bafb1763c78297823af6; from d021c344051af91f42c5ba9fdedc176740cbd238 before 1dd531e28f61edd286edc486ab068f135b5ae1eb; from d021c344051af91f42c5ba9fdedc176740cbd238 before ecda37f8faab3220da199335e42564cb7a9ad145; from d021c344051af91f42c5ba9fdedc176740cbd238 before cc27e989a5dfdfcfc1cca7c3be27a0c7532b46cb; from d021c344051af91f42c5ba9fdedc176740cbd238 before 47e63077605c6c2aa45b3df9847a8cdc1f1f6ef9; from d021c344051af91f42c5ba9fdedc176740cbd238 before 440447699c681e26ed58e9c309cad718270a18b4; from d021c344051af91f42c5ba9fdedc176740cbd238 before 9fe74e42914c851d68069713b7b917a9c33faf26; from d021c344051af91f42c5ba9fdedc176740cbd238 before 99e22ddf4edb63dc8382bc028af928056d3450cf; 3.9 (not affected: before 3.9; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.142 up to 6.6.*; from 6.12.92 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.9 before 5.10.258; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.142; from 6.7 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/1e19f08552b90070ed18bafb1763c78297823af6> (patch)
- <https://git.kernel.org/stable/c/1dd531e28f61edd286edc486ab068f135b5ae1eb> (patch)
- <https://git.kernel.org/stable/c/ecda37f8faab3220da199335e42564cb7a9ad145> (patch)
- <https://git.kernel.org/stable/c/cc27e989a5dfdfcfc1cca7c3be27a0c7532b46cb> (patch)
- <https://git.kernel.org/stable/c/47e63077605c6c2aa45b3df9847a8cdc1f1f6ef9> (patch)
- <https://git.kernel.org/stable/c/440447699c681e26ed58e9c309cad718270a18b4> (patch)
- <https://git.kernel.org/stable/c/9fe74e42914c851d68069713b7b917a9c33faf26> (patch)
- <https://git.kernel.org/stable/c/99e22ddf4edb63dc8382bc028af928056d3450cf> (patch)

## Sources

- CVE List: [CVE-2026-64115](https://www.cve.org/CVERecord?id=CVE-2026-64115), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-64115](https://nvd.nist.gov/vuln/detail/CVE-2026-64115), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-64115 · Whole record: https://cve.day/CVE-2026-64115.json · Rebuilt by cve.day 2026-11-25T22:59:29.154Z
