CVE-2022-50570: platform/chrome: fix memory corruption in ioctl
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
platform/chrome: fix memory corruption in ioctl
If "s_mem.bytes" is larger than the buffer size it leads to memory corruption.
The Linux kernel CVE team has assigned CVE-2022-50570 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.4.220 with commit e548f9503c4b3292a60a63fe77dccea62999a35a Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.10.150 with commit 868fc93b615b9f6c2b0b1894536618fa6cd66acc Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.15.75 with commit fd1d3b265784a2243fcaef06aebfb2f8ee733cec Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.19.17 with commit f143f1d9a8e5c6c9db3de81ca270191226fcce36 Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 6.0.3 with commit 0c2e18924504208644d18415667895a4ac54cf2a Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 6.1 with commit 8a07b45fd3c2dda24fad43639be5335a4595196a
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-50570
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:
drivers/platform/chrome/cros_ec_chardev.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/e548f9503c4b3292a60a63fe77dccea62999a35a https://git.kernel.org/stable/c/868fc93b615b9f6c2b0b1894536618fa6cd66acc https://git.kernel.org/stable/c/fd1d3b265784a2243fcaef06aebfb2f8ee733cec https://git.kernel.org/stable/c/f143f1d9a8e5c6c9db3de81ca270191226fcce36 https://git.kernel.org/stable/c/0c2e18924504208644d18415667895a4ac54cf2a https://git.kernel.org/stable/c/8a07b45fd3c2dda24fad43639be5335a4595196a