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 8ECDC233D8E for ; Sat, 9 Nov 2024 10:16:54 +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=1731147414; cv=none; b=hZzBLt8V65q2tFQgGawcfG8fDRxU903Y8MgV7WqSZRcQXAZAL9c5vUGZdJP6DjMz41zh4rVuTKBvEYjXBsEGCKXwXwCje0PK4vqMQYvnDTtF3DEo2AAHnQ76s+Po0pNqH448rxTWWLreQENU73h1mRuFU21romwC+1fA5nLF6tI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731147414; c=relaxed/simple; bh=wAvOxAieec6f9xZAsOUWqwnOnc03agRdKVlXWysx46g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EBG/fuXF/E7utcT0f6hz6etqMhEAcBI52VCMHxgVmFlsTHcNTRGHuWGzck4MohyLtZPEiQDr+QI9o65eLOYY1ZYoF3ByM6l8naUMxHUiWmMWi4AtMNijIXunBbxLyHuV1gVKtdN5JFHx1l5xsTsmKwr4xAnnh899SIh7Z05CoFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fCXYdYn1; 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="fCXYdYn1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16EF7C4CECE; Sat, 9 Nov 2024 10:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731147414; bh=wAvOxAieec6f9xZAsOUWqwnOnc03agRdKVlXWysx46g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fCXYdYn1r9/wo+24/2e9O2sF9alNE3RTvDtU3lAV8UasiyIjHdJcOgdOFbx82NEAL 2/41waqt5EAS7FQ8G8lus5eAfNvXNQEARTEpYyVAcRs+YDTgNpNh52SQVerIrvikSz RHtOqLY5PpZSpBfueoroMb2g9gmh2pX74QHsw0f4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50241: NFSD: Initialize struct nfsd4_copy earlier Date: Sat, 9 Nov 2024 11:15:49 +0100 Message-ID: <2024110933-CVE-2024-50241-9744@gregkh> X-Mailer: git-send-email 2.47.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=1938; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wAvOxAieec6f9xZAsOUWqwnOnc03agRdKVlXWysx46g=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn6Zq7dqlaPmBTvnWL7VvvVQd9Y137ZzXmLCtP1Hn6O9 xG75zC/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiqsswhyto5/OLim/SDhhq 1oTkfzf6fGr9X4a5YsZuG1Y2dXLvua3E5n/S3fBRzdQeAA== 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: Initialize struct nfsd4_copy earlier Ensure the refcount and async_copies fields are initialized early. cleanup_async_copy() will reference these fields if an error occurs in nfsd4_copy(). If they are not correctly initialized, at the very least, a refcount underflow occurs. The Linux kernel CVE team has assigned CVE-2024-50241 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11.3 with commit 6a488ad7745b and fixed in 6.11.7 with commit e30a9a2f69c3 Issue introduced in 6.12-rc1 with commit aadc3bbea163 and fixed in 6.12-rc6 with commit 63fab04cbd0f Issue introduced in 6.10.14 with commit b4e21431a0db 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-2024-50241 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/nfs4proc.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/e30a9a2f69c34a00a3cb4fd45c5d231929e66fb1 https://git.kernel.org/stable/c/63fab04cbd0f96191b6e5beedc3b643b01c15889