CVE-2022-49279: NFSD: prevent integer overflow on 32 bit systems
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
NFSD: prevent integer overflow on 32 bit systems
On a 32 bit system, the "len * sizeof(*p)" operation can have an integer overflow.
The Linux kernel CVE team has assigned CVE-2022-49279 to this issue.
Affected and fixed versions
===========================
Fixed in 4.19.238 with commit 3a2789e8ccb4a3e2a631f6817a2d3bb98b8c4fd8 Fixed in 5.4.189 with commit ce1aa09cc14ed625104acc2d487bd92b9a88efe2 Fixed in 5.10.110 with commit 7af164fa2f1abc577d357d22d83a2f3490875d7e Fixed in 5.15.33 with commit 303cd6173dce0a28d26526c77814eb90a41bd898 Fixed in 5.16.19 with commit 79b1c54fc6ce09ee0d5fe088bb3de26ae2150e3c Fixed in 5.17.2 with commit e4195d27306ea468a6dc3a27af6f586709951229 Fixed in 5.18 with commit 23a9dbbe0faf124fc4c139615633b9d12a3a89ef
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-49279
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:
include/linux/sunrpc/xdr.h
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/3a2789e8ccb4a3e2a631f6817a2d3bb98b8c4fd8 https://git.kernel.org/stable/c/ce1aa09cc14ed625104acc2d487bd92b9a88efe2 https://git.kernel.org/stable/c/7af164fa2f1abc577d357d22d83a2f3490875d7e https://git.kernel.org/stable/c/303cd6173dce0a28d26526c77814eb90a41bd898 https://git.kernel.org/stable/c/79b1c54fc6ce09ee0d5fe088bb3de26ae2150e3c https://git.kernel.org/stable/c/e4195d27306ea468a6dc3a27af6f586709951229 https://git.kernel.org/stable/c/23a9dbbe0faf124fc4c139615633b9d12a3a89ef