CVE-2022-50783: mptcp: use proper req destructor for IPv6
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
mptcp: use proper req destructor for IPv6
Before, only the destructor from TCP request sock in IPv4 was called even if the subflow was IPv6.
It is important to use the right destructor to avoid memory leaks with some advanced IPv6 features, e.g. when the request socks contain specific IPv6 options.
The Linux kernel CVE team has assigned CVE-2022-50783 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit 79c0949e9a09f6a14a6dd18dc8396029423f9b68 and fixed in 5.10.163 with commit 6eb02c596ec02e5897ae377e065cb7df55337a96 Issue introduced in 5.6 with commit 79c0949e9a09f6a14a6dd18dc8396029423f9b68 and fixed in 5.15.87 with commit bd5dc96fea4edd16d2e22f41b4dd50a4cfbeb919 Issue introduced in 5.6 with commit 79c0949e9a09f6a14a6dd18dc8396029423f9b68 and fixed in 6.0.18 with commit 092953f3c4cd65f88b27b87a922f6c725f34ee04 Issue introduced in 5.6 with commit 79c0949e9a09f6a14a6dd18dc8396029423f9b68 and fixed in 6.1.4 with commit 1922ea6b0ae2ea0c9a09be0eafafe1cd1069d259 Issue introduced in 5.6 with commit 79c0949e9a09f6a14a6dd18dc8396029423f9b68 and fixed in 6.2 with commit d3295fee3c756ece33ac0d935e172e68c0a4161b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2022-50783
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/mptcp/subflow.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/6eb02c596ec02e5897ae377e065cb7df55337a96 https://git.kernel.org/stable/c/bd5dc96fea4edd16d2e22f41b4dd50a4cfbeb919 https://git.kernel.org/stable/c/092953f3c4cd65f88b27b87a922f6c725f34ee04 https://git.kernel.org/stable/c/1922ea6b0ae2ea0c9a09be0eafafe1cd1069d259 https://git.kernel.org/stable/c/d3295fee3c756ece33ac0d935e172e68c0a4161b