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

Published Jan 31, 2025
·
Updated

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 vsockhasdata() 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 Software

19 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.5<5.15.177
Linux Linux kernel>=5.16<6.1.127
Linux Linux kernel>=6.2<6.6.74
Linux Linux kernel>=6.7<6.12.11
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6
Linux Linux kernel=6.13-rc7
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft cbl2 kernel 5.15.176.3-3
Microsoft cbl2 kernel 5.15.176.3-3
Microsoft cbl2 kernel 5.15.180.1-1
Microsoft azl3 kernel 6.6.64.2-9
Microsoft azl3 kernel 6.6.76.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1
  2. Upgrade

    Upgrade debian/linux-6.1 to a version that resolves this vulnerability.

    Fixed in 6.1.129-1~deb11u1

Event History

Jan 31, 2025
CVE Published
via MITRE·11:25 AM
Data Sourced
via MITRE·11:25 AM
Description
Data Sourced
via Red Hat·12:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 14, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Description
Updated
via Microsoft·07:00 AM
DescriptionSeverity
May 2, 2025
Data Sourced
via Ubuntu·11:49 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-21666?

CVE-2025-21666 is classified as a moderate severity vulnerability.

2

How do I fix CVE-2025-21666?

To fix CVE-2025-21666, you should update your Linux kernel to the latest stable version that resolves this issue.

3

Which versions of the Linux kernel are affected by CVE-2025-21666?

CVE-2025-21666 affects Linux kernel versions from 5.5 up to 6.13-rc7.

4

What kind of issue does CVE-2025-21666 address?

CVE-2025-21666 addresses a null pointer dereference in the vsock_*[has_data|has_space] functions.

5

Is exploitation of CVE-2025-21666 possible remotely?

Exploitation of CVE-2025-21666 typically requires local access to the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203