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 C2C42314A6C for ; Thu, 18 Sep 2025 16:05:12 +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=1758211512; cv=none; b=I4CXFCslyrbQkZvwwNAmsVwKcPLASBgoppP821wNyE6h1qsx148OU+m/5E8LL4I+EAUgR4hb2BSLu7exVw+0g2TH88Lk38SNkOz7o/i8HzNQLUkXM0PW0PThAZLJK3y70Asd4W3/8z1Ae9QHor0cWTpr+JxZnJMx+OnR/K5BOPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211512; c=relaxed/simple; bh=Ghl/feFiOHsYT6b8ORnw33rjf7hMedbMWjfEyALpU+g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=blImwngxt1pfYt1uMbV+vpKUbtAM2pPpVLKqBIHnaU32N+1Mem+J2LtbK3d4baG8B5UAebLh9fYsh1akulI3hfXVMg0BEhNlRB3HOyMsURYjLBl+rRmIUYsXC+FhUvY+c9a0U7LPxYnnVzAqzszntf5DwmrCDBCQUfBKL5c2JsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T+q3tnpi; 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="T+q3tnpi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3453C4CEE7; Thu, 18 Sep 2025 16:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211512; bh=Ghl/feFiOHsYT6b8ORnw33rjf7hMedbMWjfEyALpU+g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T+q3tnpiUt7gpCva57J2x8++XPwGi0CkQWKdXHvA8FCV4ZozXDJy9BzX8OzB9uDYS I4lUmteuWVfjgP1zr8pbEyYI+/2BN1Ui2MpFUTGbsGb2vxpevpnABdsyJZbe3HSzbv eYpEhmm1EiclvSd970b5chLg14Hpfg6apCy48F6k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53429: btrfs: don't check PageError in __extent_writepage Date: Thu, 18 Sep 2025 18:04:20 +0200 Message-ID: <2025091857-CVE-2023-53429-dd4c@gregkh> X-Mailer: git-send-email 2.51.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=2398; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ehq3sLq1byoCY9ObvJzeqnB2ytG9eaf4x0Jk+ihHJ/U=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndHPXrOC6WbUzi//5nxfzfVraH95I8o81vaBsu/916 amAh2Y3O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAimQkM892/eAXZL+G9l2uY qc3V8Fw1qGjuDoYF1/bMTF9Vv/fxfiEHC/ej1wJn29YGAgA= 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: btrfs: don't check PageError in __extent_writepage __extent_writepage currenly sets PageError whenever any error happens, and the also checks for PageError to decide if to call error handling. This leads to very unclear responsibility for cleaning up on errors. In the VM and generic writeback helpers the basic idea is that once I/O is fired off all error handling responsibility is delegated to the end I/O handler. But if that end I/O handler sets the PageError bit, and the submitter checks it, the bit could in some cases leak into the submission context for fast enough I/O. Fix this by simply not checking PageError and just using the local ret variable to check for submission errors. This also fundamentally solves the long problem documented in a comment in __extent_writepage by never leaking the error bit into the submission context. The Linux kernel CVE team has assigned CVE-2023-53429 to this issue. Affected and fixed versions =========================== Fixed in 6.4.7 with commit d40be032ecd8ee1ca033bee43c7755d21fb4d72a Fixed in 6.5 with commit 3e92499e3b004baffb479d61e191b41b604ece9a 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-2023-53429 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/btrfs/extent_io.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/d40be032ecd8ee1ca033bee43c7755d21fb4d72a https://git.kernel.org/stable/c/3e92499e3b004baffb479d61e191b41b604ece9a