{"id":"CVE-2022-50071","title":"mptcp: move subflow cleanup in mptcp_destroy_common()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmptcp: move subflow cleanup in mptcp_destroy_common()\n\nIf the mptcp socket creation fails due to a CGROUP_INET_SOCK_CREATE\neBPF program, the MPTCP protocol ends-up leak…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= e16163b6e2b720fb74e5af758546f6dad27e6c9e < 6139039c8fc5c9dbcdc3ad389b9a6d0cacb4d693","Linux >= e16163b6e2b720fb74e5af758546f6dad27e6c9e < c0bf3c6aa444a5ef44acc57ef6cfa53fd4fc1c9b","Linux 5.11"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T19:53:44.531441Z"},"published":"2025-06-18","updated":"2026-11-05","sourceUpdated":"2026-11-05T20:00:15.665Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-50071","references":[{"url":"https://git.kernel.org/stable/c/6139039c8fc5c9dbcdc3ad389b9a6d0cacb4d693"},{"url":"https://git.kernel.org/stable/c/c0bf3c6aa444a5ef44acc57ef6cfa53fd4fc1c9b"}],"tags":["cve.org"],"epss":0.00241,"epssPercentile":0.15272,"ingestedAt":"2026-11-05T22:38:31.645Z","slug":"CVE-2022-50071","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nmptcp: move subflow cleanup in mptcp_destroy_common()\n\nIf the mptcp socket creation fails due to a CGROUP_INET_SOCK_CREATE\neBPF program, the MPTCP protocol ends-up leaking all the subflows:\nthe related cleanup happens in __mptcp_destroy_sock() that is not\ninvoked in such code path.\n\nAddress the issue moving the subflow sockets cleanup in the\nmptcp_destroy_common() helper, which is invoked in every msk cleanup\npath.\n\nAdditionally get rid of the intermediate list_splice_init step, which\nis an unneeded relic from the past.\n\nThe issue is present since before the reported root cause commit, but\nany attempt to backport the fix before that hash will require a complete\nrewrite.\n\n## Affected\n\n- `Linux >= e16163b6e2b720fb74e5af758546f6dad27e6c9e < 6139039c8fc5c9dbcdc3ad389b9a6d0cacb4d693`\n- `Linux >= e16163b6e2b720fb74e5af758546f6dad27e6c9e < c0bf3c6aa444a5ef44acc57ef6cfa53fd4fc1c9b`\n- `Linux 5.11`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}