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 1820B12EBEE for ; Tue, 21 May 2024 14:21:55 +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=1716301316; cv=none; b=bG235tWe32qQPEEn07YDbX0sFdA062AN3XiGoJD0ywcnOvPOCb3nsorOh49UA5RpVsO4f9s2ruNcHZorKNN8qmMJVDNI3mfi+OGuHKInYtOU1oB+tc1vLpDITU+n+I4XxPszEzEC/TMHJjHTmmBGlpySzkTTqiWIe4Zik6Oi/0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301316; c=relaxed/simple; bh=lkgdoOD8EelqybKfb+2av1REB7AaEnCboekNbvma1aI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jAQkmivltoClFzE56+oDWUfBUnZApjktc+TCi9OEnripQ320Y+U/UHbSguHyn1Q/I0fJ/vt2wZtjjTPTKk3MXU7rtLSBW/jl3okgNop+u8LTNW4qdjfwW518fomRxmpJtdHgW/XHRMSEPOsKZQc1TgtG9vKEDcLcJf1O4J03ZmY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PsTGs/Wn; 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="PsTGs/Wn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C40CC2BD11; Tue, 21 May 2024 14:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301315; bh=lkgdoOD8EelqybKfb+2av1REB7AaEnCboekNbvma1aI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PsTGs/Wn5e/+2fzFbgDDSiiyBAYkYNWCcqxCxu8nvrLvWkHzqOPBWFTOtBGkr67+H uCqwGujWkDR7i89C3ckNoV/iJG1cD+2fhouKoMg2kGViW2U52CVwmQu7WC8OtK/5/B 1/hBMTTzSt8zi9mHtCCIoQ7kJLF+OdyInvV/PIfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47260: NFS: Fix a potential NULL dereference in nfs_get_client() Date: Tue, 21 May 2024 16:20:14 +0200 Message-ID: <2024052147-CVE-2021-47260-4a4b@gregkh> X-Mailer: git-send-email 2.45.1 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=2898; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lkgdoOD8EelqybKfb+2av1REB7AaEnCboekNbvma1aI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a5sd3wY1rt7rcq5csG5OWf/NI5du34vf0mht/WBOi TZjwTqLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIniyG+cGXywVP3UzsMJNm U7riMPmMZZXRKob5nsL18vL3rqk7fKrJELfgVYjy7Z0AAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: NFS: Fix a potential NULL dereference in nfs_get_client() None of the callers are expecting NULL returns from nfs_get_client() so this code will lead to an Oops. It's better to return an error pointer. I expect that this is dead code so hopefully no one is affected. The Linux kernel CVE team has assigned CVE-2021-47260 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit 31434f496abb and fixed in 4.4.273 with commit fab8bfdfb4aa Issue introduced in 3.17 with commit 31434f496abb and fixed in 4.9.273 with commit a979e6010009 Issue introduced in 3.17 with commit 31434f496abb and fixed in 4.14.237 with commit 634f17ff1d59 Issue introduced in 3.17 with commit 31434f496abb and fixed in 4.19.195 with commit 4b380a7d84ef Issue introduced in 3.17 with commit 31434f496abb and fixed in 5.4.126 with commit 0057ecef9f32 Issue introduced in 3.17 with commit 31434f496abb and fixed in 5.10.44 with commit 279ad78a00f8 Issue introduced in 3.17 with commit 31434f496abb and fixed in 5.12.11 with commit 58ddf61f10b8 Issue introduced in 3.17 with commit 31434f496abb and fixed in 5.13 with commit 09226e8303be 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-2021-47260 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/client.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/fab8bfdfb4aac9e4e8363666333adfdf21e89106 https://git.kernel.org/stable/c/a979e601000982a3ca693171a6d4dffc47f8ad00 https://git.kernel.org/stable/c/634f17ff1d59905eb3b4bbbc00805961d08beaee https://git.kernel.org/stable/c/4b380a7d84ef2ce3f4f5bec5d8706ed937ac6502 https://git.kernel.org/stable/c/0057ecef9f324007c0ba5fcca4ddd131178ce78b https://git.kernel.org/stable/c/279ad78a00f8b9c5ff24171a59297187a3bd44b7 https://git.kernel.org/stable/c/58ddf61f10b8f9b7b1341644bfee2f1c6508d4e1 https://git.kernel.org/stable/c/09226e8303beeec10f2ff844d2e46d1371dc58e0