Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5938C28313F for ; Wed, 18 Jun 2025 11:06:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244792; cv=none; b=bdWEzwVfQblCzQytkWhjR9ebR+WoUFH59heCP3IGS3OPI++yFzhHHyZTRmPGs6h4lOksspodOufCT7fYwuI0YPwmuFjT7GUCDQpJyCfMMyHp4hzFnk6YPiRI5w5kRPvWQQyaC36CTVl+48QqZ4b7BB3906vbYh2Nlog5+RK03uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244792; c=relaxed/simple; bh=WJfOI1lwN0J+P6s2ht3Hw5KWcmQs624As+e2sqp4zl0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S84tOI4Lftlr6nlh8Oop7g1HWTxRA+rXe0G8t14VV2YW/ePhf6uzfCkMC/CBiJBFq3ZFto2R/AHPewxcyZJV+WaPRLW+KhFgHhxTPWB0ucDAveI4otlLzSc1G95tRqRWb00VbzQPJ7nn+ozk5ikUXrUXwFVVfIFzwEo1PXRMaHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xgMVzfnx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xgMVzfnx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8899CC4CEE7; Wed, 18 Jun 2025 11:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244791; bh=WJfOI1lwN0J+P6s2ht3Hw5KWcmQs624As+e2sqp4zl0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xgMVzfnxFyAVaZWX2dbQsigNkgc/t0KlNlt6FaSXlhGtWDiiqUbfcgQsh7rlSglQd e7hHoB5Jt6GdjJ81x41oYvE1WPhMnr3MVO81XlSulaotOKyiuDG0QhkjIMQArjGOfW /XejpOIe8oRiXOOqpCv1JUQNzODS3A9Du7mxvG3s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50006: NFSv4.2 fix problems with __nfs42_ssc_open Date: Wed, 18 Jun 2025 13:01:11 +0200 Message-ID: <2025061830-CVE-2022-50006-6d77@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2438; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3x+HqK4mPB/5YdTUAOYNZhqNEmIsLNKr3kl1EpG07wo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc/y2yy1Zkl1sLs9gwvzyS83hJpOA5NYiprtx093eP vx23PNfRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEuIRhrvDDw4/Df+7omavc Yn8zvX8yi/qHSwwLFswRXdj57mHlIqe8Z0LVSot6D5V2AAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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