CVE-2022-50071
kernel: mptcp: move subflow cleanup in mptcp_destroy_common()
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 18, 2025
Updated · June 30, 2026
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.
Statement
The issue leads to a memory/socket leak when an MPTCP socket fails to initialize due to a CGROUP_INET_SOCK_CREATE eBPF hook. Subflows are not cleaned up in this failure path, resulting in leaked resources. The bug is not directly exploitable and causes minor local denial of service in rare configurations.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 2.3CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
CWE not specified