Bug 2298122 (CVE-2022-48786) - CVE-2022-48786 kernel: vsock: remove vsock from connected table when connect is interrupted by a signal
Summary: CVE-2022-48786 kernel: vsock: remove vsock from connected table when connect ...
Keywords:
Status: NEW
Alias: CVE-2022-48786
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-16 12:24 UTC by OSIDB Bzimport
Modified: 2024-12-04 11:48 UTC (History)
4 users (show)

Fixed In Version: kernel 4.9.303, kernel 4.14.268, kernel 4.19.231, kernel 5.4.181, kernel 5.10.102, kernel 5.15.25, kernel 5.16.11, kernel 5.17
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:10273 0 None None None 2024-11-26 00:33:46 UTC
Red Hat Product Errata RHSA-2024:6990 0 None None None 2024-09-24 00:24:43 UTC
Red Hat Product Errata RHSA-2024:6991 0 None None None 2024-09-24 00:47:38 UTC

Description OSIDB Bzimport 2024-07-16 12:24:53 UTC
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.

Comment 7 errata-xmlrpc 2024-09-24 00:24:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2024:6990 https://access.redhat.com/errata/RHSA-2024:6990

Comment 8 errata-xmlrpc 2024-09-24 00:47:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2024:6991 https://access.redhat.com/errata/RHSA-2024:6991

Comment 9 errata-xmlrpc 2024-11-26 00:33:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2024:10273 https://access.redhat.com/errata/RHSA-2024:10273


Note You need to log in before you can comment on or make changes to this bug.