CVE-2022-50006: NFSv4.2 fix problems with __nfs42_ssc_open
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
NFSv4.2 fix problems with __nfs42_ssc_open
A destination server while doing a COPY shouldn't accept using the passed in filehandle if its not a regular filehandle.
If alloc_file_pseudo() has failed, we need to decrement a reference on the newly created inode, otherwise it leaks.
The Linux kernel CVE team has assigned CVE-2022-50006 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit ec4b0925089826af45e99cdf78a8ac84c1d005f1 and fixed in 5.10.140 with commit 5e49ea099850feadcbf33c74b4f514a3e8049b91 Issue introduced in 5.5 with commit ec4b0925089826af45e99cdf78a8ac84c1d005f1 and fixed in 5.15.64 with commit 5626f95356111602ad26fc05445a4d1f818a0992 Issue introduced in 5.5 with commit ec4b0925089826af45e99cdf78a8ac84c1d005f1 and fixed in 5.19.6 with commit c2a47f6903e270c308c40ad4a23c17b30a54373c Issue introduced in 5.5 with commit ec4b0925089826af45e99cdf78a8ac84c1d005f1 and fixed in 6.0 with commit fcfc8be1e9cf2f12b50dce8b579b3ae54443a014
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-50006
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:
fs/nfs/nfs4file.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/5e49ea099850feadcbf33c74b4f514a3e8049b91 https://git.kernel.org/stable/c/5626f95356111602ad26fc05445a4d1f818a0992 https://git.kernel.org/stable/c/c2a47f6903e270c308c40ad4a23c17b30a54373c https://git.kernel.org/stable/c/fcfc8be1e9cf2f12b50dce8b579b3ae54443a014