CVE-2025-21666
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom c0cfa2d8a788fcf45df5bf4070ab2474c88d543a before daeac89cdb03d30028186f5ff7dc26ec8fa843e7, from c0cfa2d8a788fcf45df5bf4070ab2474c88d543a before 9e5fed46ccd2c34c5fa5a9c8825ce4823fdc853e, from c0cfa2d8a788fcf45df5bf4070ab2474c88d543a before b52e50dd4fabd12944172bd486a4f4853b7f74dd, from c0cfa2d8a788fcf45df5bf4070ab2474c88d543a before bc9c49341f9728c31fe248c5fbba32d2e81a092b, from c0cfa2d8a788fcf45df5bf4070ab2474c88d543a before c23d1d4f8efefb72258e9cedce29de10d057f8ca, from c0cfa2d8a788fcf45df5bf4070ab2474c88d543a before 91751e248256efc111e52e15115840c35d85abaf, 5.5
Not affected: before 5.5, from 5.10.234 up to 5.10.*, from 5.15.177 up to 5.15.*, from 6.1.127 up to 6.1.*, from 6.6.74 up to 6.6.*, from 6.12.11 up to 6.12.*
CVE List
linux linux_kernelfrom 5.5 before 5.15.177, from 5.16 before 6.1.127, from 6.2 before 6.6.74, from 6.7 before 6.12.11, 6.13NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: vsock: previene null-ptr-deref en vsock_*[has_data|has_space] Informes recientes han mostrado cómo a veces llamamos a vsock_*_has_data() cuando un socket vsock ha sido desasignado de un transporte (ver enlaces adjuntos), pero no deberíamos. Las confirmaciones anteriores deberían haber resuelto los problemas reales, pero es posible que tengamos más en el futuro, por lo que para evitar null-ptr-deref, podemos devolver 0 (sin espacio, sin datos disponibles) pero con una advertencia. De esta manera, el código debería continuar ejecutándose en un estado casi consistente y tener una advertencia que nos permita depurar problemas futuros.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21666 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-21666 changed 2026-06-17Public domain