Bug 2348086 (CVE-2022-49669) - CVE-2022-49669 kernel: mptcp: fix race on unaccepted mptcp sockets
Summary: CVE-2022-49669 kernel: mptcp: fix race on unaccepted mptcp sockets
Keywords:
Status: NEW
Alias: CVE-2022-49669
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:17 UTC by OSIDB Bzimport
Modified: 2025-06-03 17:33 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:17:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

mptcp: fix race on unaccepted mptcp sockets

When the listener socket owning the relevant request is closed,
it frees the unaccepted subflows and that causes later deletion
of the paired MPTCP sockets.

The mptcp socket's worker can run in the time interval between such delete
operations. When that happens, any access to msk->first will cause an UaF
access, as the subflow cleanup did not cleared such field in the mptcp
socket.

Address the issue explicitly traversing the listener socket accept
queue at close time and performing the needed cleanup on the pending
msk.

Note that the locking is a bit tricky, as we need to acquire the msk
socket lock, while still owning the subflow socket one.

Comment 1 Avinash Hanwate 2025-02-26 20:55:14 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022623-CVE-2022-49669-44d5@gregkh/T


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