vsock: remove vsock from connected table when connect is interrupted by a signal
Published Jul 16, 2024
7.8
HIGHCVSS 3.1
EPSS 0.25%
Description
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 products
-
Affected
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
- ≥ , <
-
Affected
- 3.9
Unaffected
- ≥ 0, < 3.9
- ≥ 4.14.268, ≤ 4.14.*
- ≥ 4.19.231, ≤ 4.19.*
- ≥ 4.9.303, ≤ 4.9.*
- ≥ 5.10.102, ≤ 5.10.*
- ≥ 5.15.25, ≤ 5.15.*
- ≥ 5.16.11, ≤ 5.16.*
- 5.17
- ≥ 5.4.181, ≤ 5.4.*
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Linux | Linux | unaffected | Affected
|
| Linux | Linux | affected | Affected
Unaffected
|
- ≥ 3.9 · < 4.9.303
- ≥ 4.10 · < 4.14.268
- ≥ 4.15 · < 4.19.231
- ≥ 4.20 · < 5.4.181
- ≥ 5.5 · < 5.10.102
- ≥ 5.11 · < 5.15.25
- ≥ 5.16 · < 5.16.11
- 5.17
- 5.17
- 5.17
- 5.17
No data.
Red Hat Enterprise Linux 8
kernel-0:4.18.0-425.3.1.el8
Fixed · RHSA-2022:7683
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
kernel-0:4.18.0-372.131.1.el8_6
Fixed · RHSA-2024:10273
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
kernel-0:4.18.0-372.131.1.el8_6
Fixed · RHSA-2024:10273
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
kernel-0:4.18.0-372.131.1.el8_6
Fixed · RHSA-2024:10273
Red Hat Enterprise Linux 9
kernel-0:5.14.0-162.6.1.el9_1
Fixed · RHSA-2022:8267
Red Hat Enterprise Linux 9
kernel-0:5.14.0-162.6.1.el9_1
Fixed · RHSA-2022:8267
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
kernel-0:5.14.0-70.117.1.el9_0
Fixed · RHSA-2024:6991
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
kernel-rt-0:5.14.0-70.117.1.rt21.189.el9_0
Fixed · RHSA-2024:6990
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 7
kernel
Out of support scope
Red Hat Enterprise Linux 7
kernel-rt
Out of support scope
Red Hat Enterprise Linux 8
kernel-rt
Will not fix
Red Hat Enterprise Linux 9
kernel-rt
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | kernel-0:4.18.0-425.3.1.el8 | Fixed | RHSA-2022:7683 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | kernel-0:4.18.0-372.131.1.el8_6 | Fixed | RHSA-2024:10273 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | kernel-0:4.18.0-372.131.1.el8_6 | Fixed | RHSA-2024:10273 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | kernel-0:4.18.0-372.131.1.el8_6 | Fixed | RHSA-2024:10273 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-162.6.1.el9_1 | Fixed | RHSA-2022:8267 |
| Red Hat Enterprise Linux 9 | kernel-0:5.14.0-162.6.1.el9_1 | Fixed | RHSA-2022:8267 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | kernel-0:5.14.0-70.117.1.el9_0 | Fixed | RHSA-2024:6991 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | kernel-rt-0:5.14.0-70.117.1.rt21.189.el9_0 | Fixed | RHSA-2024:6990 |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 7 | kernel | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | kernel-rt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 | kernel-rt | Will not fix | n/a |
| Red Hat Enterprise Linux 9 | kernel-rt | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue is fixed in RHEL-9.1 and above ~~~ in (rhel-8.7, rhel-8.8, rhel-8.9, rhel-8.10) vsock: remove vsock from connected table when connect is interrupted by a signal in (rhel-9.1, rhel-9.2, rhel-9.3, rhel-9.4, rhel-9.5) vsock: remove vsock from connected table when connect is interrupted by a signal ~~~ Please note that while RHEL-9 kernel-rt still appears as affected, it has been fixed in the same RHSA as RHEL-9 kernel. This is because from RHEL-9.3 onwards, the kernel and kernel-rt fixes are bundled together in a single errata.
References (14)
- https://access.redhat.com/security/cve/CVE-2022-48786 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2298122 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-53665 Advisory
- https://git.kernel.org/stable/c/0bb88f3f7e8d506f3efe46d694964117e20efbfc Patch
- https://git.kernel.org/stable/c/2910bcb9f67551a45397735e47b6d456eb8cd549 Patch
- https://git.kernel.org/stable/c/5f326fe2aef411a6575628f92bd861463ea91df7 Patch
- https://git.kernel.org/stable/c/787468ee7a435777521d33399d012fd591ae2f94 Patch
- https://git.kernel.org/stable/c/87cd1bbd6677411e17369cd4b7389ab1e1fdba44 Patch
- https://git.kernel.org/stable/c/addd62a8cb6fa90aa322365c62487da61f6baab8 Patch
- https://git.kernel.org/stable/c/b9208492fcaecff8f43915529ae34b3bcb03877c Patch
- https://git.kernel.org/stable/c/e3b3939fd137aab6d00d54bee0ee9244b286a608 Patch
- https://lore.kernel.org/linux-cve-announce/2024071637-CVE-2022-48786-7416@gregkh/T
- https://nvd.nist.gov/vuln/detail/CVE-2022-48786
- https://www.cve.org/CVERecord?id=CVE-2022-48786
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub
No data