# CVE-2022-48786: vsock: remove vsock from connected table when connect is interrupted by a signal

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-07-16T11:43:43.677Z
- Modified: 2026-08-05T08:52:16.369Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d021c344051af91f42c5ba9fdedc176740cbd238 before 0bb88f3f7e8d506f3efe46d694964117e20efbfc; from d021c344051af91f42c5ba9fdedc176740cbd238 before e3b3939fd137aab6d00d54bee0ee9244b286a608; from d021c344051af91f42c5ba9fdedc176740cbd238 before 2910bcb9f67551a45397735e47b6d456eb8cd549; from d021c344051af91f42c5ba9fdedc176740cbd238 before 5f326fe2aef411a6575628f92bd861463ea91df7; from d021c344051af91f42c5ba9fdedc176740cbd238 before 87cd1bbd6677411e17369cd4b7389ab1e1fdba44; from d021c344051af91f42c5ba9fdedc176740cbd238 before 787468ee7a435777521d33399d012fd591ae2f94; from d021c344051af91f42c5ba9fdedc176740cbd238 before addd62a8cb6fa90aa322365c62487da61f6baab8; from d021c344051af91f42c5ba9fdedc176740cbd238 before b9208492fcaecff8f43915529ae34b3bcb03877c; 3.9 (not affected: before 3.9; from 4.9.303 up to 4.9.*; from 4.14.268 up to 4.14.*; from 4.19.231 up to 4.19.*; from 5.4.181 up to 5.4.*; from 5.10.102 up to 5.10.*; from 5.15.25 up to 5.15.*; from 5.16.11 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: from 3.9 before 4.9.303; from 4.10 before 4.14.268; from 4.15 before 4.19.231; from 4.20 before 5.4.181; from 5.5 before 5.10.102; from 5.11 before 5.15.25; from 5.16 before 5.16.11; 5.17

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0bb88f3f7e8d506f3efe46d694964117e20efbfc> (patch)
- <https://git.kernel.org/stable/c/e3b3939fd137aab6d00d54bee0ee9244b286a608> (patch)
- <https://git.kernel.org/stable/c/2910bcb9f67551a45397735e47b6d456eb8cd549> (patch)
- <https://git.kernel.org/stable/c/5f326fe2aef411a6575628f92bd861463ea91df7> (patch)
- <https://git.kernel.org/stable/c/87cd1bbd6677411e17369cd4b7389ab1e1fdba44> (patch)
- <https://git.kernel.org/stable/c/787468ee7a435777521d33399d012fd591ae2f94> (patch)
- <https://git.kernel.org/stable/c/addd62a8cb6fa90aa322365c62487da61f6baab8> (patch)
- <https://git.kernel.org/stable/c/b9208492fcaecff8f43915529ae34b3bcb03877c> (patch)

## Sources

- CVE List: [CVE-2022-48786](https://www.cve.org/CVERecord?id=CVE-2022-48786), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-48786](https://nvd.nist.gov/vuln/detail/CVE-2022-48786), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-48786 · Whole record: https://cve.day/CVE-2022-48786.json · Rebuilt by cve.day 2026-11-25T22:58:19.881Z
