Cloudanix VulnDB

CVE-2025-21666

Medium · 5.5

CVSS

5.5

EPSS

0.2%

Published

Jan 31, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in the Linux kernel's handling of certain network sockets could cause computers to crash unexpectedly.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Denial Of Service
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Null pointer dereference in vsock_has_data and vsock_has_space when a vsock socket is de-assigned from its transport, potentially causing kernel instability or crash.

Why it matters to the business

Linux systems using virtual sockets may experience unexpected crashes or degraded stability, increasing operational downtime and maintenance costs, especially in environments with high vsock usage.

How an attack unfolds

An attacker triggers code paths that invoke vsock data or space checks after transport de-assignment, leading to null dereference and system impact; prior reports indicated such scenarios in kernel operation.

How to fix it

Update the Linux kernel to the fixed commit daeac89cdb03d30028186f5ff7dc26ec8fa843e7 or later stable version containing the vsock null-ptr-deref prevention changes.

How to confirm the fix worked

Verify the running kernel includes commit daeac89cdb03d30028186f5ff7dc26ec8fa843e7; test vsock socket de-assignment scenarios and confirm absence of null dereference warnings or crashes.

Typical attack path

  1. Identify or create conditions where a vsock socket loses its transport assignment
  2. Trigger vsock_has_data or vsock_has_space calls on the de-assigned socket
  3. Cause null pointer dereference resulting in kernel fault or warning

How to detect it

Inspect kernel logs for warnings or oops messages referencing vsock_has_data, vsock_has_space, or null pointer dereferences in the vsock subsystem.

What your security team should do

  • Prioritize kernel updates on all affected Linux systems to the fixed version
  • Monitor kernel logs for vsock-related warnings during normal operation
  • Review vsock usage in virtualized or containerized workloads for exposure

The record

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 packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 No fix
Debian:11 linux 0 5.10.234-1
Debian:11 linux-6.1 0 6.1.128-1~deb11u1
Debian:11 linux-6.1 0 6.1.6.1.128-1~deb11u1
Debian:12 linux 0 6.1.128-1
Debian:13 linux 0 6.12.11-1
Linux Kernel 5.5.0 5.10.234
SUSE:Linux Enterprise High Availability Extension 15 SP6 kernel-default 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-default 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_8 0 1-150600.1.3.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_8 0 1-150600.13.3.2
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-64kb 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-default 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-default-base 0 6.4.0-150600.23.38.1.150600.12.16.2
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-source 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-zfcpdump 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-coco 0 6.4.0-15061.15.coco15sp6.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-coco_debug 0 6.4.0-15061.15.coco15sp6.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-source-coco 0 6.4.0-15061.15.coco15sp6.1
SUSE:Linux Enterprise Module for Confidential Computing Technical Preview 15 SP6 kernel-syms-coco 0 6.4.0-15061.15.coco15sp6.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-docs 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-obs-build 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-source 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-syms 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Legacy 15 SP6 kernel-default 0 6.4.0-150600.23.38.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-azure 0 6.4.0-150600.8.31.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-source-azure 0 6.4.0-150600.8.31.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-syms-azure 0 6.4.0-150600.8.31.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 kernel-default 0 6.4.0-150600.23.38.1
SUSE:Real Time Module 15 SP6 kernel-rt 0 6.4.0-150600.10.26.1
SUSE:Real Time Module 15 SP6 kernel-rt_debug 0 6.4.0-150600.10.26.1
SUSE:Real Time Module 15 SP6 kernel-source-rt 0 6.4.0-150600.10.26.1
SUSE:Real Time Module 15 SP6 kernel-syms-rt 0 6.4.0-150600.10.26.1
openSUSE:Leap 15.6 dtb-aarch64 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-64kb 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-azure 0 6.4.0-150600.8.31.1
openSUSE:Leap 15.6 kernel-debug 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-default 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-default-base 0 6.4.0-150600.23.38.1.150600.12.16.2
openSUSE:Leap 15.6 kernel-docs 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-kvmsmall 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-obs-build 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-obs-qa 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-rt 0 6.4.0-150600.10.26.1
openSUSE:Leap 15.6 kernel-rt_debug 0 6.4.0-150600.10.26.1
openSUSE:Leap 15.6 kernel-source 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-source-azure 0 6.4.0-150600.8.31.1
openSUSE:Leap 15.6 kernel-source-rt 0 6.4.0-150600.10.26.1
openSUSE:Leap 15.6 kernel-syms 0 6.4.0-150600.23.38.1
openSUSE:Leap 15.6 kernel-syms-azure 0 6.4.0-150600.8.31.1
openSUSE:Leap 15.6 kernel-syms-rt 0 6.4.0-150600.10.26.1
openSUSE:Leap 15.6 kernel-zfcpdump 0 6.4.0-150600.23.38.1

Related vulnerabilities