CVE-2022-48786

vsock: remove vsock from connected table when connect is interrupted by a signal

MEDIUM
5.5
CVSS Score
Published: July 16, 2024 at 11:43 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.9 ≤ v < 4.14.2683.9 ≤ v < 4.19.2313.9 ≤ v < 4.9.3033.9 ≤ v < 5.10.1023.9 ≤ v < 5.15.253.9 ≤ v < 5.16.113.9 ≤ v < 5.173.9 ≤ v < 5.4.1814.10 ≤ v < 4.14.2684.15 ≤ v < 4.19.2314.20 ≤ v < 5.4.1815.11 ≤ v < 5.15.255.16 ≤ v < 5.16.115.5 ≤ v < 5.10.1025.17 rc15.17 rc25.17 rc35.17 rc4d021c344051af91f42c5ba9fdedc176740cbd238
Vendor states this is fixed in 0bb88f3f7e8d506f3efe46d694964117e20efbfc (fixed)
Vendor states this is fixed in 2910bcb9f67551a45397735e47b6d456eb8cd549 (fixed)
Vendor states this is fixed in 5f326fe2aef411a6575628f92bd861463ea91df7 (fixed)
Vendor states this is fixed in 787468ee7a435777521d33399d012fd591ae2f94 (fixed)
Vendor states this is fixed in 87cd1bbd6677411e17369cd4b7389ab1e1fdba44 (fixed)
Vendor states this is fixed in addd62a8cb6fa90aa322365c62487da61f6baab8 (fixed)
Vendor states this is fixed in b9208492fcaecff8f43915529ae34b3bcb03877c (fixed)
Vendor states this is fixed in e3b3939fd137aab6d00d54bee0ee9244b286a608 (fixed)
Vendor states this is fixed in 3.9 (unaffected)
Vendor states this is fixed in 4.14.268 (unaffected)
Vendor states this is fixed in 4.19.231 (unaffected)
Vendor states this is fixed in 4.9.303 (unaffected)
Vendor states this is fixed in 5.10.102 (unaffected)
Vendor states this is fixed in 5.15.25 (unaffected)
Vendor states this is fixed in 5.16.11 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.4.181 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0bb88f3f7e8d506f3efe46d694964117e20efbfc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2910bcb9f67551a45397735e47b6d456eb8cd549
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5f326fe2aef411a6575628f92bd861463ea91df7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/787468ee7a435777521d33399d012fd591ae2f94
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/87cd1bbd6677411e17369cd4b7389ab1e1fdba44
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/addd62a8cb6fa90aa322365c62487da61f6baab8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9208492fcaecff8f43915529ae34b3bcb03877c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e3b3939fd137aab6d00d54bee0ee9244b286a608

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card