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 024E015B11F for ; Mon, 29 Jul 2024 15:53:28 +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=1722268409; cv=none; b=q834+sxDdtbNncgMIPPW3PVsp6f/qociPlWW9QOJuHC4hGxm09fI03nGBEscuhkosj6hUNdaFSbpxdyLOrarAN1TIpiEDvvr+gLQl3Ati/bMUZkY/4LTS2PhHED6p4zu/2jn/O9XaFfpq6SOVPIax1vdl+BPImLELO70tGkCW0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268409; c=relaxed/simple; bh=kJ3s6QiU2OQ6Mo5wQXcj1zr/KTQnmbkFZV3/nluT7OU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AMFrAHkFM4Zn57+z78dfh8uRdVxtaeh94Cwzbl/RXnp3KOEKOlZYZiD4pOcz7TKGmPmSjS8BgaHXZtIYD8kc4I6+bExIeofQu9bUKqXgWM+qJYDHckXPdVcWgpAJBF8Aq8AA7LhH1u9Ay+1fxVQEm4uPzAWAbHZX9MohpCn0r3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=opwid8ic; 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="opwid8ic" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67100C32786; Mon, 29 Jul 2024 15:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268408; bh=kJ3s6QiU2OQ6Mo5wQXcj1zr/KTQnmbkFZV3/nluT7OU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=opwid8icuOEaXkGEwLzlMdnonrpRA+1G2xR3LLL1bOkOPB6yeUAT+8C0wH6BLz4rX 0Abxp7ag/l2EX76O00hdHGSker4HR2QrHet5FmetxQXXNMss5UeXmtOwQ367Lje7IR QiclEnYTCQNHEW40wNYWX70I5i6mK92yFt8txDdk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42078: nfsd: initialise nfsd_info.mutex early. Date: Mon, 29 Jul 2024 17:53:07 +0200 Message-ID: <2024072954-CVE-2024-42078-bd37@gregkh> X-Mailer: git-send-email 2.45.2 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=1862; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kJ3s6QiU2OQ6Mo5wQXcj1zr/KTQnmbkFZV3/nluT7OU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd11fd3rdj1snhKu+hEb/+bbk6MpvNz+Gq385feq5T dvlFw2HV3XEsjAIMjHIiimyfNnGc3R/xSFFL0Pb0zBzWJlAhjBwcQrARFatZphfIsRw0jt89QmF uPICjpupS2+rRt5mWHAt12/jt44bbY82bHikFNH1aur/HaYA 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: initialise nfsd_info.mutex early. nfsd_info.mutex can be dereferenced by svc_pool_stats_start() immediately after the new netns is created. Currently this can trigger an oops. Move the initialisation earlier before it can possibly be dereferenced. The Linux kernel CVE team has assigned CVE-2024-42078 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 7b207ccd9833 and fixed in 6.9.8 with commit 7e8b94045bc7 Issue introduced in 6.8 with commit 7b207ccd9833 and fixed in 6.10 with commit e0011bca603c 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-42078 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/nfsctl.c fs/nfsd/nfssvc.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/7e8b94045bc77ce4f085ddfb9eb04e5760e66169 https://git.kernel.org/stable/c/e0011bca603c101f2a3c007bdb77f7006fa78fb1