CVE-2025-21666

Source
https://cve.org/CVERecord?id=CVE-2025-21666
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21666.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21666
Downstream
Related
Published
2025-01-31T11:25:31.138Z
Modified
2026-03-12T02:18:02.213861Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]
Details

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

vsock: prevent null-ptr-deref in vsock_*[hasdata|hasspace]

Recent reports have shown how we sometimes call vsock_*hasdata() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21666.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c0cfa2d8a788fcf45df5bf4070ab2474c88d543a
Fixed
daeac89cdb03d30028186f5ff7dc26ec8fa843e7
Fixed
9e5fed46ccd2c34c5fa5a9c8825ce4823fdc853e
Fixed
b52e50dd4fabd12944172bd486a4f4853b7f74dd
Fixed
bc9c49341f9728c31fe248c5fbba32d2e81a092b
Fixed
c23d1d4f8efefb72258e9cedce29de10d057f8ca
Fixed
91751e248256efc111e52e15115840c35d85abaf

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21666.json"