CVE-2022-49669: mptcp: fix race on unaccepted mptcp sockets
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2022-49669?
CVE-2022-49669 has been classified with a severity that indicates it can lead to stability issues in systems using the Linux kernel.
How do I mitigate CVE-2022-49669?
Mitigation for CVE-2022-49669 involves updating your Linux kernel to the latest version where the vulnerability has been fixed.
What systems are affected by CVE-2022-49669?
CVE-2022-49669 affects systems running specific versions of the Linux kernel that utilize MPTCP (Multipath TCP) functionality.
Is there a patch available for CVE-2022-49669?
Yes, a patch for CVE-2022-49669 is available and should be applied to affected Linux kernel versions.
Can CVE-2022-49669 cause data loss?
While CVE-2022-49669 does not directly cause data loss, it can lead to socket management issues that may potentially impact application performance.