CVE-2022-49669 Details
Description
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.
A use-after-free vulnerability has been identified in the Linux kernel's implementation of Multipath TCP (MPTCP). This issue arises when a listener socket is closed, freeing unaccepted subflows and leading to the deletion of paired MPTCP sockets. If the MPTCP socket's worker accesses the 'first' field of the MPTCP socket during this interval, it can cause a use-after-free condition, as the subflow cleanup does not clear that field. The vulnerability has been addressed by explicitly traversing the listener socket's accept queue at close time and performing the necessary cleanup on pending MPTCP sockets, although this requires careful management of socket locks.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/6aeed9045071f2252ff4e98fc13d1e304f33e5b0 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a8a3e95c74e48c2c9b07b81fafda9122993f2e12 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.17, < 5.18.10 5.19 rc1 5.19 rc2 5.19 rc3 5.19 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 24, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |