# CVE-2025-21670: vsock/bpf: return early if transport is not assigned

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-01-31 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2025-21670, DEBIAN-CVE-2025-21670
- Record: https://cvemate.com/vulnerability/CVE-2025-21670 · JSON: https://cvemate.com/vulnerability/CVE-2025-21670/json

## Description

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

vsock/bpf: return early if transport is not assigned

Some of the core functions can only be called if the transport
has been assigned.

As Michal reported, a socket might have the transport at NULL,
for example after a failed connect(), causing the following trace:

    BUG: kernel NULL pointer dereference, address: 00000000000000a0
    #PF: supervisor read access in kernel mode
    #PF: error_code(0x0000) - not-present page
    PGD 12faf8067 P4D 12faf8067 PUD 113670067 PMD 0
    Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
    CPU: 15 UID: 0 PID: 1198 Comm: a.out Not tainted 6.13.0-rc2+
    RIP: 0010:vsock_connectible_has_data+0x1f/0x40
    Call Trace:
     vsock_bpf_recvmsg+0xca/0x5e0
     sock_recvmsg+0xb9/0xc0
     __sys_recvfrom+0xb3/0x130
     __x64_sys_recvfrom+0x20/0x30
     do_syscall_64+0x93/0x180
     entry_SYSCALL_64_after_hwframe+0x76/0x7e

So we need to check the `vsk->transport` in vsock_bpf_recvmsg(),
especially for connected sockets (stream/seqpacket) as we already
do in __vsock_connectible_recvmsg().
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.226%, percentile 14.101%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 109)

- debian linux (Debian): \< 6.12.11-1
- ubuntu linux (Ubuntu): \< 6.8.0-62.65
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1030.32
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1030.32~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1030.35
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.11 (Ubuntu): \< 6.11.0-1013.13~24.04.1

## References

- <https://git.kernel.org/stable/c/58e586c30d0b6f5dc0174a41026f2b0a48c9aab6>
- <https://git.kernel.org/stable/c/6771e1279dadf1d92a72e1465134257d9e6f2459>
- <https://git.kernel.org/stable/c/f6abafcd32f9cfc4b1a2f820ecea70773e26d423>
- <https://ubuntu.com/security/CVE-2025-21670>
- <https://www.cve.org/CVERecord?id=CVE-2025-21670>
- <https://git.kernel.org/linus/f6abafcd32f9cfc4b1a2f820ecea70773e26d423>
- <https://ubuntu.com/security/notices/USN-7445-1>
- <https://ubuntu.com/security/notices/USN-7448-1>
- <https://ubuntu.com/security/notices/USN-7595-1>
- <https://ubuntu.com/security/notices/USN-7596-1>
- <https://ubuntu.com/security/notices/USN-7595-2>
- <https://ubuntu.com/security/notices/USN-7596-2>
- <https://ubuntu.com/security/notices/USN-7595-3>
- <https://ubuntu.com/security/notices/USN-7595-4>
- <https://ubuntu.com/security/notices/USN-7595-5>
- <https://ubuntu.com/security/notices/USN-7653-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-21670>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-21670>

---

Data as of 2026-12-05T04:11:27.160Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
