# CVE-2022-50071: mptcp: move subflow cleanup in mptcp_destroy_common()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-06-18T11:02:15.896Z
- Modified: 2026-11-05T20:17:22.263Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mptcp: move subflow cleanup in mptcp_destroy_common()

If the mptcp socket creation fails due to a CGROUP_INET_SOCK_CREATE
eBPF program, the MPTCP protocol ends-up leaking all the subflows:
the related cleanup happens in __mptcp_destroy_sock() that is not
invoked in such code path.

Address the issue moving the subflow sockets cleanup in the
mptcp_destroy_common() helper, which is invoked in every msk cleanup
path.

Additionally get rid of the intermediate list_splice_init step, which
is an unneeded relic from the past.

The issue is present since before the reported root cause commit, but
any attempt to backport the fix before that hash will require a complete
rewrite.

(As written by CVE List.)

## Affected

- Linux Linux: from e16163b6e2b720fb74e5af758546f6dad27e6c9e before 6139039c8fc5c9dbcdc3ad389b9a6d0cacb4d693; from e16163b6e2b720fb74e5af758546f6dad27e6c9e before c0bf3c6aa444a5ef44acc57ef6cfa53fd4fc1c9b; 5.11 (not affected: before 5.11; from 5.19.4 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.11 before 5.19.4

## References

- <https://git.kernel.org/stable/c/6139039c8fc5c9dbcdc3ad389b9a6d0cacb4d693> (patch)
- <https://git.kernel.org/stable/c/c0bf3c6aa444a5ef44acc57ef6cfa53fd4fc1c9b> (patch)

## Sources

- CVE List: [CVE-2022-50071](https://www.cve.org/CVERecord?id=CVE-2022-50071), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50071](https://nvd.nist.gov/vuln/detail/CVE-2022-50071), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50071 · Whole record: https://cve.day/CVE-2022-50071.json · Rebuilt by cve.day 2026-11-25T22:58:21.040Z
