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 88D684C97 for ; Sat, 17 Aug 2024 09:13:26 +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=1723886006; cv=none; b=AtL6HMN1E8oZ83uSD5b2Rhoj0hjoRfFNGcWi6H/aR+Y3qi90CvlnuaItsM8adQYp4EooVAa4VxTddlaSCCqwfkVT9Cr2Bc3Z5WTtFZZL30bJu3SU2K4MwjB3Dp3qOm0WCOgJufed+kGJeu7CcYA1VP7c1siUnVfs5+ryKnaV0PI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723886006; c=relaxed/simple; bh=b7oLAobMHEMxKTk8YvzdY7j1DrdulhqHo5lRTUISKLw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fLx/AHK1H08cqLOOxbKPr3NwQt3JkhX+SXxcKRmMnReS51FvsVwG/Ku9R3o5Ysw8WDu9qIf8/rI/knijxzjcYKYH+Kxde69hFu0+O/afLF47LhU9cmr4jgR20F0Zy7h1Z0YhycfXrj0V2LIHXuChzeZ9IMYKaNPnvc56aS3AIGQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r6fok3j1; 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="r6fok3j1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11EA4C116B1; Sat, 17 Aug 2024 09:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723886006; bh=b7oLAobMHEMxKTk8YvzdY7j1DrdulhqHo5lRTUISKLw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=r6fok3j1uRLPh0Tn7H2675lKG+EwpqwkJwnUb8r9TqmgiPkE5eAkVTyiHoS0ilRFK VSjXHJoN9Rcwqkn4z5Lcw6GrCKYbFxI7ieE+gg1WcJIMe+7pog8kibQsmBQ09ToJm7 t9nNfMzfegZV8Sfq5TUJhPcxSZslPxKkKvtOxRSk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42295: nilfs2: handle inconsistent state in nilfs_btnode_create_block() Date: Sat, 17 Aug 2024 11:10:00 +0200 Message-ID: <2024081747-CVE-2024-42295-4f43@gregkh> X-Mailer: git-send-email 2.46.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=2566; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=b7oLAobMHEMxKTk8YvzdY7j1DrdulhqHo5lRTUISKLw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMm53l7VUTPmtZbxWOGNL3tKEd+o2NYvvdBydv+Llp LMrF7lIdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE3FoYFqxVu5W6/245v676 yuPczZWPLm9/GcywYEe4TV34I2WBKVfqz2gvWDyjtVBIFgA= 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: nilfs2: handle inconsistent state in nilfs_btnode_create_block() Syzbot reported that a buffer state inconsistency was detected in nilfs_btnode_create_block(), triggering a kernel bug. It is not appropriate to treat this inconsistency as a bug; it can occur if the argument block address (the buffer index of the newly created block) is a virtual block number and has been reallocated due to corruption of the bitmap used to manage its allocation state. So, modify nilfs_btnode_create_block() and its callers to treat it as a possible filesystem error, rather than triggering a kernel bug. The Linux kernel CVE team has assigned CVE-2024-42295 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit a60be987d45d and fixed in 6.1.103 with commit 012be828a118 Issue introduced in 2.6.30 with commit a60be987d45d and fixed in 6.6.44 with commit be56dfc9be06 Issue introduced in 2.6.30 with commit a60be987d45d and fixed in 6.10.3 with commit 366c3f688dd0 Issue introduced in 2.6.30 with commit a60be987d45d and fixed in 6.11-rc1 with commit 4811f7af6090 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-42295 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/nilfs2/btnode.c fs/nilfs2/btree.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/012be828a118bf496e666ef1fc47fc0e7358ada2 https://git.kernel.org/stable/c/be56dfc9be0604291267c07b0e27a69a6bda4899 https://git.kernel.org/stable/c/366c3f688dd0288cbe38af1d3a886b5c62372e4a https://git.kernel.org/stable/c/4811f7af6090e8f5a398fbdd766f903ef6c0d787