Linux Kernel vsock Socket Binding Vulnerability Leading to Use-After-Free

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's virtual socket (vsock) implementation. This issue arises because socket bindings are not properly managed during transport reassignment, allowing for a use-after-free condition. The vulnerability occurs in the vsock_create function, where the reference count of a socket is improperly handled, leading to a memory safety issue. When the socket is released, it can be accessed after being freed, potentially causing undefined behavior or exploitation.

Impact

Exploitation of this vulnerability leads to a use-after-free condition, which can be leveraged to execute arbitrary code or cause a denial-of-service by crashing the system.

Reproduction

The vulnerability can be reproduced by creating a vsock socket, binding it to a specific context ID and port, and then triggering a transport reassignment. This process can be automated with a script that manages the socket lifecycle and manipulates the reference counts, ultimately exploiting the use-after-free condition to execute arbitrary code.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
7.5
exploitability
6.0
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.