Skip to content
Heist/ feed
Unrated

btrfs: write-protect folios during data writeback

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: btrfs: write-protect folios during data writeback commit 095be159f3eb ("btrfs: unify folio dirty flag clearing") replaced the folio_clear_dirty_for_io() call in extent_write_cache_pages() with a plain folio_test_dirty() check. Besides clearing the dirty flag, folio_clear_dirty_for_io() also calls folio_mkclean(), which write-protects the shared mmap PTEs mapping the folio. Note that we still do call folio_clear_dirty_for_io() later in submit_one_sector() when we clear dirty on the last sector of the folio (the only sector for non-subpage cases). But we lost this early call in extent_write_cache_pages(). Without the extra write-protection, a process with the file mmap-ed can modify a sector while it is being used by writeback in a way that expects a stable folio (checksumming, compressing, copying, etc...) without faulting, which manifests as a handful of concrete bugs. 1. For large folios or subpage sectorsize, it is possible to submit a bio which does not cover the whole folio. When this happens, we will have a bio in flight for a folio that we have *not* called folio_clear_dirty_for_io() on. If a task with an existing mmap-ed PTE writes (without faulting..) in this window, it can result in corruptions. If the write arrives while the checksumming or writing itself is underway, this can result in an invalid checksum and later corruption reports on read. If the write arrives after checksumming/writing is done

Announced Group revision 1
Original source ↗

CVE-2026-89772

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-89772

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "a4ef54dbb576032ba31a646a5ffc8a26a83cb92c",
        "lessThan": "074c715e0b498891c09fe7f11e1cd9d7a04699bd",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "a4ef54dbb576032ba31a646a5ffc8a26a83cb92c",
        "lessThan": "5376c9db45368eb210b4d71104ac00a59dc8b6e0",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/btrfs/extent_io.c",
      "fs/btrfs/extent_io.h",
      "fs/btrfs/inode.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.13"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.13",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "7.2.4",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/btrfs/extent_io.c",
      "fs/btrfs/extent_io.h",
      "fs/btrfs/inode.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-89772

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#35240 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement