FKIE_CVE-2026-143105

Vulnerability from fkie_nvd - Published: 2026-12-03 10:17 - Updated: 2026-12-03 10:17
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: fs: don't strand I_METADATA_WRITEBACK inodes outside the LRU Since commit c474bc56b6d1 ("fs: Provide way for filesystem to wait for metadata writeback") ext2, ext4 without a journal, fat, udf and minix set I_METADATA_WRITEBACK on an inode whose metadata was copied into a buffer that might not have reached the disk yet. Only data integrity writeback, i.e. fsync() and friends, clears it again. The flusher and sync(2) leave it alone. inode_lru_isolate() treats every state bit other than I_REFERENCED as a reason not to reclaim the inode right now. It takes the inode off the LRU and relies on iput(), writeback completion or the removal of the last page from the page cache to put it back once the reason is gone. But I_METADATA_WRITEBACK doesn't go away on its own. iput() puts the inode back on the LRU with the bit still set and the next scan takes it off again. So neither memory pressure nor drop_caches can free these inodes. Only fsync() and friends or unmounting the filesystem get rid of them. On ext4 without a journal ext4_mark_iloc_dirty() sets the bit on every ext4_mark_inode_dirty(), so even an atime update is enough. An unprivileged user creating or touching lots of files grows the inode cache without bound until the OOM killer comes along. The inode can't just be thrown away though. An fsync() after the inode was read back in wouldn't know that its metadata still has to be written out. So let the shrinker reclaim inodes with I_METADATA_WRITEBACK like any other clean inode and make evict() write out what the bit tracks unless the inode is being deleted. Since the previous patch the bit covers the tracked metadata buffers as well, and since the lookup patches ->sync_inode_metadata() doesn't read anything from disk for that. It writes and waits for whatever is still dirty or under writeback. The mmb_sync() calls in ->evict_inode() are redundant with that and the following patches drop them. Handing these inodes to a work item that syncs them and puts them back on the LRU would work too. But that's a second inode reclaim offload mechanism next to the deferred inode reclaim that is being worked on, and it needs a reference on the inode which leaks into remount, freeze and umount. For stable this needs the previous patches as well. Without the lookup changes evict() ends up reading inode blocks from disk with __GFP_NOFAIL allocations from reclaim. v7.3 also still has bfs which sets I_METADATA_WRITEBACK too and reads the inode block in bfs_sync_inode_metadata(), so the backport needs the cache-only lookup for bfs as well.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/inode.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "37774263930a2965b7d50b70746b441dee2821c3",
              "status": "affected",
              "version": "c474bc56b6d147b40b96cfed6a30d8302cef0a33",
              "versionType": "git"
            },
            {
              "lessThan": "9b4b26d110f32008134750f82c98e621f2e4758f",
              "status": "affected",
              "version": "c474bc56b6d147b40b96cfed6a30d8302cef0a33",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/inode.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.3"
            },
            {
              "lessThan": "7.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfs: don\u0027t strand I_METADATA_WRITEBACK inodes outside the LRU\n\nSince commit c474bc56b6d1 (\"fs: Provide way for filesystem to wait for\nmetadata writeback\") ext2, ext4 without a journal, fat, udf and minix\nset I_METADATA_WRITEBACK on an inode whose metadata was copied into a\nbuffer that might not have reached the disk yet. Only data integrity\nwriteback, i.e. fsync() and friends, clears it again. The flusher and\nsync(2) leave it alone.\n\ninode_lru_isolate() treats every state bit other than I_REFERENCED as a\nreason not to reclaim the inode right now. It takes the inode off the\nLRU and relies on iput(), writeback completion or the removal of the\nlast page from the page cache to put it back once the reason is gone.\n\nBut I_METADATA_WRITEBACK doesn\u0027t go away on its own. iput() puts the\ninode back on the LRU with the bit still set and the next scan takes it\noff again. So neither memory pressure nor drop_caches can free these\ninodes. Only fsync() and friends or unmounting the filesystem get rid\nof them.\n\nOn ext4 without a journal ext4_mark_iloc_dirty() sets the bit on every\next4_mark_inode_dirty(), so even an atime update is enough. An\nunprivileged user creating or touching lots of files grows the inode\ncache without bound until the OOM killer comes along.\n\nThe inode can\u0027t just be thrown away though. An fsync() after the inode\nwas read back in wouldn\u0027t know that its metadata still has to be\nwritten out. So let the shrinker reclaim inodes with\nI_METADATA_WRITEBACK like any other clean inode and make evict() write\nout what the bit tracks unless the inode is being deleted. Since the\nprevious patch the bit covers the tracked metadata buffers as well, and\nsince the lookup patches -\u003esync_inode_metadata() doesn\u0027t read anything\nfrom disk for that. It writes and waits for whatever is still dirty or\nunder writeback. The mmb_sync() calls in -\u003eevict_inode() are redundant\nwith that and the following patches drop them.\n\nHanding these inodes to a work item that syncs them and puts them back\non the LRU would work too. But that\u0027s a second inode reclaim offload\nmechanism next to the deferred inode reclaim that is being worked on,\nand it needs a reference on the inode which leaks into remount, freeze\nand umount.\n\nFor stable this needs the previous patches as well. Without the lookup\nchanges evict() ends up reading inode blocks from disk with\n__GFP_NOFAIL allocations from reclaim. v7.3 also still has bfs which\nsets I_METADATA_WRITEBACK too and reads the inode block in\nbfs_sync_inode_metadata(), so the backport needs the cache-only lookup\nfor bfs as well."
    }
  ],
  "id": "CVE-2026-143105",
  "lastModified": "2026-12-03T10:17:42.323",
  "metrics": {},
  "published": "2026-12-03T10:17:42.323",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/37774263930a2965b7d50b70746b441dee2821c3"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/9b4b26d110f32008134750f82c98e621f2e4758f"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.