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 E50A626B2B1 for ; Fri, 9 May 2025 06:43:08 +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=1746772989; cv=none; b=eLm+0l+d0zKNUgcPP4kDzFXCaTjeZaEzyGBmEGUQYvXhrtlGZfFZuQSHhLqQIThUkc8TRSDWpwwmXOqecr9l9RRP2OUUlT4zdjuX8hWwHjiklbFWcvGzUxOnG9AUvIqPQXjC0yXEdb4+DsiccIqcTA8kEO40muMjb7/FxQF3pAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746772989; c=relaxed/simple; bh=RDotpjUfPiUiOnKkBv/gY6+KU6u/k/ePIGh4bHPY2zc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Iz7mCo0DUV97FD9Q+R30/7oEAyBKW9ofkH7uuAIFor+keSkfTe+n51Kn5voSj5un5N7FgrPtztty67ARHaGxIRlPqGHEP/1jFRKko3ZOvD9VNV1IWyrla+7FzOZ33oW4METkumbEcvg6/NrhCKs/sMFWXmovh7AKdxppWcnB7Sk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mv0Ogx5K; 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="mv0Ogx5K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1C9AC4CEE4; Fri, 9 May 2025 06:43:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746772988; bh=RDotpjUfPiUiOnKkBv/gY6+KU6u/k/ePIGh4bHPY2zc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mv0Ogx5KP/xCyZfXxKOUBkq6AqkJzjY1GBWkl7QuXslzxJCWgzrQBd9Zwp9nyTxY4 1clfhU7Hqp6xXieOJLJNgI2OvnGaLC+UVOnHCbOh1CKdMrKqlSxPA/Ts4d8tvmzuFg J3S4gYWlnv7ir/aQVRECCqXgBElmJW9Fh5Y+duqo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37839: jbd2: remove wrong sb->s_sequence check Date: Fri, 9 May 2025 08:42:17 +0200 Message-ID: <2025050915-CVE-2025-37839-2807@gregkh> X-Mailer: git-send-email 2.49.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=2841; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q3/6C7OvREo6UVfDuHZTNa/b5bZTzsFMhWigODHQic8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi4+veieQXs3Cl8YeOr3o0NYmlVd+PI/3n3KW2Dnlr lrdpqTtHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRyw8YFkzerBJVHJPe6tv+ TS7umaic89WWrwzzI9n1fjDU7jM4282xI/DvBrctAcoPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: jbd2: remove wrong sb->s_sequence check Journal emptiness is not determined by sb->s_sequence == 0 but rather by sb->s_start == 0 (which is set a few lines above). Furthermore 0 is a valid transaction ID so the check can spuriously trigger. Remove the invalid WARN_ON. The Linux kernel CVE team has assigned CVE-2025-37839 to this issue. Affected and fixed versions =========================== Fixed in 5.4.293 with commit cf30432f5b3064ff85d85639c2f0106f89c566f6 Fixed in 5.10.237 with commit b479839525fe7906966cdc4b5b2afbca048558a1 Fixed in 5.15.181 with commit ad926f735b4d4f10768fec7d080cadeb6d075cac Fixed in 6.1.135 with commit 3b4643ffaf72d7a5a357e9bf68b1775f8cfe7e77 Fixed in 6.6.88 with commit c88f7328bb0fff66520fc9164f02b1d06e083c1b Fixed in 6.12.24 with commit 9eaec071f111cd2124ce9a5b93536d3f6837d457 Fixed in 6.13.12 with commit c98eb9ffb1d9c98237b5e1668eee17654e129fb0 Fixed in 6.14.3 with commit b0cca357f85beb6144ab60c62dcc98508cc044bf Fixed in 6.15-rc1 with commit e6eff39dd0fe4190c6146069cc16d160e71d1148 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-2025-37839 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/jbd2/journal.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/cf30432f5b3064ff85d85639c2f0106f89c566f6 https://git.kernel.org/stable/c/b479839525fe7906966cdc4b5b2afbca048558a1 https://git.kernel.org/stable/c/ad926f735b4d4f10768fec7d080cadeb6d075cac https://git.kernel.org/stable/c/3b4643ffaf72d7a5a357e9bf68b1775f8cfe7e77 https://git.kernel.org/stable/c/c88f7328bb0fff66520fc9164f02b1d06e083c1b https://git.kernel.org/stable/c/9eaec071f111cd2124ce9a5b93536d3f6837d457 https://git.kernel.org/stable/c/c98eb9ffb1d9c98237b5e1668eee17654e129fb0 https://git.kernel.org/stable/c/b0cca357f85beb6144ab60c62dcc98508cc044bf https://git.kernel.org/stable/c/e6eff39dd0fe4190c6146069cc16d160e71d1148