Cloudanix VulnDB

CVE-2025-21669

Medium · 5.5

CVSS

5.5

EPSS

0.2%

Published

Jan 31, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Linux kernel can cause systems to crash when handling certain network socket operations in virtual environments.

Exploitation
Local Privilege
Attacker needs
Local User
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/virtio when vsk->transport becomes NULL after socket de-assignment or reassignment during interrupted connect operations, causing crash on subsequent packet receipt.

Why it matters to the business

Kernel crashes leading to denial of service on Linux systems relying on virtio vsock for virtual machine networking, with potential disruption to cloud and container workloads.

How an attack unfolds

An attacker performs a connect on a vsock socket that is interrupted by a signal, follows with a second failed connect leaving transport at NULL, then triggers packet handling to dereference the null pointer.

How to fix it

Update the Linux kernel to commit 18a7fc371d1dbf8deff16c2dd9292bcc73f43040 or later versions that include the transport change discard logic.

How to confirm the fix worked

Confirm presence of discard logic for changed transports in vsock/virtio source; reproduce the signal-interrupted connect scenario and verify no NULL dereference occurs.

Typical attack path

  1. Create vsock socket
  2. Issue connect() interrupted by signal
  3. Issue second failed connect()
  4. Trigger incoming packet processing to access NULL transport

How to detect it

Review kernel logs and oops reports for NULL pointer dereferences involving vsock or virtio transport access after socket connect failures.

  • vsk->transport at NULL
  • NULL pointer dereference vsock/virtio
  • packet received after transport change

What your security team should do

  • Apply the referenced kernel commit or stable update containing the fix
  • Monitor kernel logs for vsock-related NULL pointer oops
  • Prioritize patching on systems using virtio vsock for inter-VM communication

The record

In the Linux kernel, the following vulnerability has been resolved: vsock/virtio: discard packets if the transport changes If the socket has been de-assigned or assigned to another transport, we must discard any packets received because they are not expected and would cause issues when we access vsk->transport. A possible scenario is described by Hyunwoo Kim in the attached link, where after a first connect() interrupted by a signal, and a second connect() failed, we can find `vsk->transport` at NULL, leading to a NULL pointer dereference.

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