Home

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.

PUBLISHED Reserved 2025-09-17 | Published 2025-09-18 | Updated 2025-09-18 | Assigner Linux

Product status

Default status
unaffected

1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before d40be032ecd8ee1ca033bee43c7755d21fb4d72a
affected

1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 3e92499e3b004baffb479d61e191b41b604ece9a
affected

Default status
affected

6.4.7 (semver)
unaffected

6.5 (original_commit_for_fix)
unaffected

References

git.kernel.org/...c/d40be032ecd8ee1ca033bee43c7755d21fb4d72a

git.kernel.org/...c/3e92499e3b004baffb479d61e191b41b604ece9a

cve.org (CVE-2023-53429)

nvd.nist.gov (CVE-2023-53429)

Download JSON