CVE-2025-21666: vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]
In the Linux kernel, the following vulnerability has been resolved:
vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]
Recent reports have shown how we sometimes call vsock_*_has_data()
when a vsock socket has been de-assigned from a transport (see attached
links), but we shouldn't.
Previous commits should have solved the real problems, but we may have
more in the future, so to avoid null-ptr-deref, we can return 0
(no space, no data available) but with a warning.
This way the code should continue to run in a nearly consistent state
and have a warning that allows us to debug future problems.
Security readout for executives and security teams
Plain-English summary
CVE-2025-21666 is a Linux kernel vsock flaw where the kernel can hit a null pointer instead of safely handling a socket without an assigned transport. The business risk is availability: a local low-privileged user may be able to crash or destabilize affected systems, not steal data or bypass authentication.
Executive priority
Schedule remediation in the normal kernel patch cycle, with faster action for shared or virtualization-heavy systems. This is not supported as an internet-routed remote compromise in the provided evidence, but it can affect service availability.
Technical view
The issue is CWE-476 in Linux vsock data/space checks. The fix changes vsock_*_has_data() and vsock_*_has_space() behavior so de-assigned sockets return no data or space, with a warning, instead of dereferencing null transport state. CVSS is 5.5: local, low complexity, low privilege, no user interaction, high availability impact.
Likely exposure
Exposure is Linux systems running affected kernel builds with vsock functionality available, especially where local users or workloads can reach vsock sockets. The source bundle identifies Linux as affected, but exact distro package status should be verified with vendor advisories.
Exploitation context
The provided sources do not show active exploitation, and KEV is false. The CVSS vector indicates local, low-privilege exploitation with availability impact only. Treat it primarily as a denial-of-service risk on multi-user hosts, shared compute, and virtualization-heavy environments.
Researcher notes
The core condition is a vsock socket de-assigned from its transport before has_data or has_space checks. The patch is defensive: return 0 and warn rather than dereference null. Evidence is strongest for upstream Linux and downstream advisories, not for real-world exploitation.
Mitigation direction
Update affected Linux kernels using vendor-supported packages or stable kernel fixes.
Prioritize systems allowing untrusted local users, containers, or shared workloads.
Review Debian LTS and Siemens advisories if those distributions or products apply.
If no vendor package is available, monitor vendor guidance before applying kernel changes.
Validation and detection
Inventory Linux kernel versions across hosts, guests, appliances, and embedded systems.
Check whether vsock support is present and exposed to local users or workloads.
Compare installed kernels against distro advisories and referenced stable commits.
Confirm patched systems boot the updated kernel after maintenance.
Monitor kernel logs for vsock warnings after patching.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.