CVE-2022-48786

HIGH

Linux Kernel Use-After-Free in vsock_connect

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: vsock: remove vsock from connected table when connect is interrupted by a signal vsock_connect() expects that the socket could already be in the TCP_ESTABLISHED state when the connecting task wakes up with a signal pending. If this happens the socket will be in the connected table, and it is not removed when the socket state is reset. In this situation it's common for the process to retry connect(), and if the connection is successful the socket will be added to the connected table a second time, corrupting the list. Prevent this by calling vsock_remove_connected() if a signal is received while waiting for a connection. This is harmless if the socket is not in the connected table, and if it is in the table then removing it will prevent list corruption from a double add. Note for backporting: this patch requires d5afa82c977e ("vsock: correct removal of socket from the list"), which is in all current stable trees except 4.9.y.

Scores

CVSS v3 7.8
EPSS 0.0025
EPSS Percentile 16.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

Status published
Products (27)
linux/Kernel 3.9.0 - 4.9.303linux
linux/Kernel 4.10.0 - 4.14.268linux
linux/Kernel 4.15.0 - 4.19.231linux
linux/Kernel 4.20.0 - 5.4.181linux
linux/Kernel 5.11.0 - 5.15.25linux
linux/Kernel 5.16.0 - 5.16.11linux
linux/Kernel 5.5.0 - 5.10.102linux
Linux/Linux < 3.9
Linux/Linux 3.9
Linux/Linux 4.14.268 - 4.14.*
... and 17 more
Published Jul 16, 2024
Tracked Since Feb 18, 2026