From mboxrd@z Thu Jan 1 00:00:00 1970 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 5E97F6D1D2 for ; Tue, 21 May 2024 14:38:40 +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=1716302321; cv=none; b=gHwCPQZSpQP6U61hS47THj79gUxR3vUuiJoQ4seThUbSnb+aUBB8I5Y09yg/0h1I/W5KOUITHuukiOeP7XZSRr7Otju2TJ3KvzZmaMAc/1j6oTdHkPB/9wmIzhppAuCjagZubjA1hy2HlGKCyG5LCsPTV19VAMNjRCYEBfnH7Wk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302321; c=relaxed/simple; bh=BMQhigTdn5fXYB5l2wPaA3k4pehlYnYHhfZX1nrlmvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jO8LB0X1Ge1BjKyMbtN7CZvMgo3bI1eXjsONlUg2hG888bI9YFUrrzTrGDsgw7WjMnLTIS3dpPBSIqTAOlm+z+CPmp+8w3uYcJziVhDQsjFk4asFt8wiFFroa18ic110UbMm20fuGIb7j5fBZMdLuim5HOsf2ANyFYN1IFgmNUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sTxnD80V; 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="sTxnD80V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D397C2BD11; Tue, 21 May 2024 14:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302320; bh=BMQhigTdn5fXYB5l2wPaA3k4pehlYnYHhfZX1nrlmvU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sTxnD80VUuQwx0bCVyYx1ZPznMJPM4FmnLZpXyKouNwe9I0EzQVswJ1rtrwPte2/o IMIdiJD2hbNSEptFUYzgQ1L17iv2PIUjQsILW4CwilE+UBTe0XyrAsQzzk5RJ5WJwA FOHgCNcAfTDY8Hd9mVnTdReUoCm7r2OGJpn378VM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47316: nfsd: fix NULL dereference in nfs3svc_encode_getaclres Date: Tue, 21 May 2024 16:35:50 +0200 Message-ID: <2024052130-CVE-2021-47316-e2c2@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=2097; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BMQhigTdn5fXYB5l2wPaA3k4pehlYnYHhfZX1nrlmvU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G42Eb/bV87d9rGP9Gnxi2warY3t/zaxUFWk71V4nz 3rXXdO2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYiHMawYO3PyZz33e8/PtV6 vJ338Z2c2tR3RgwLFqr/m3tM8Kg/R9pJiyPXo5+lbF1XAgA= 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: nfsd: fix NULL dereference in nfs3svc_encode_getaclres In error cases the dentry may be NULL. Before 20798dfe249a, the encoder also checked dentry and d_really_is_positive(dentry), but that looks like overkill to me--zero status should be enough to guarantee a positive dentry. This isn't the first time we've seen an error-case NULL dereference hidden in the initialization of a local variable in an xdr encoder. But I went back through the other recent rewrites and didn't spot any similar bugs. The Linux kernel CVE team has assigned CVE-2021-47316 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 20798dfe249a and fixed in 5.13.4 with commit 650e6f383a6e Issue introduced in 5.13 with commit 20798dfe249a and fixed in 5.14 with commit ab1016d39cc0 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-47316 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/nfsd/nfs3acl.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/650e6f383a6eb40f7c0a010982a74ab4b6893870 https://git.kernel.org/stable/c/ab1016d39cc052064e32f25ad18ef8767a0ee3b8