CVE-2023-53429

btrfs: don't check PageError in __extent_writepage

State
Published
Severity
7.8 High
Published
Sep 18, 2025
Updated
Oct 3, 2026
Reserved
Sep 17, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 61391d562229ed94899ed4b4973dc2f0c015292a to before 3c26023365a955d2d69355f5167508a963e44333Affected
  • 61391d562229ed94899ed4b4973dc2f0c015292a to before d40be032ecd8ee1ca033bee43c7755d21fb4d72aAffected
  • 61391d562229ed94899ed4b4973dc2f0c015292a to before 3e92499e3b004baffb479d61e191b41b604ece9aAffected
LinuxLinux
  • 3.16Affected
  • before 3.16Not affected
  • 6.1.189 through 6.1.*Not affected
  • 6.4.7 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.