CVE-2025-21666

vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]

Medium · published January 31, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
12.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00224 · 12.3th percentile
Published
2025-01-31T11:25Z
EPSS history
Timeline
  • 31 JAN 11:25Z
    vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]
    cvelistv5