CVE-2026-89639 (GCVE-0-2026-89639)
Vulnerability from cvelistv5
Published
2026-09-11 19:45
Modified
2026-10-19 08:50
Summary
In the Linux kernel, the following vulnerability has been resolved: cifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC cifs_do_truncate() is invoked from cifs_open() without i_rwsem, so it cannot use cifs_resize_file_locked() to perform a proper fscache cookie resize. Instead, add cifs_invalidate_cache() after cifs_setsize(). cifs_invalidate_cache() calls fscache_invalidate(), which works without holding i_rwsem: it unconditionally increments inval_counter and sets FSCACHE_COOKIE_NO_DATA_TO_READ, ensuring that stale cached data is not served once the cookie is later activated by fscache_use_cookie(). Truncation to zero leaves no valid cached data, making invalidation the correct semantic here.
Impacted products
Vendor Product Version
Linux Linux Version: efbcecdecefc26fa062c0e8210533ccad7d6bd4a
Version: fa724e235cfdb0fb0bb427d0f9dfe864ae27403e
Version: fa724e235cfdb0fb0bb427d0f9dfe864ae27403e
Version: 6838bcac954487cc0a3c8a4ee1b3a3a30e244dc9
Version: 75640976cf474eb41682a13f2dbe9534ac26ca50
Version: 3513f3931c579ba2a715784c6dedc59e0d9282ee
Version: 6.18.44   ≤
Version: 6.12.105   ≤
Version: 7.1.8   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/file.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8b9b10fe5b8b492b27b9f4546742ea541a650213",
              "status": "affected",
              "version": "efbcecdecefc26fa062c0e8210533ccad7d6bd4a",
              "versionType": "git"
            },
            {
              "lessThan": "81fc3868a7f726980ff845c1d0d271051e5f0f45",
              "status": "affected",
              "version": "fa724e235cfdb0fb0bb427d0f9dfe864ae27403e",
              "versionType": "git"
            },
            {
              "lessThan": "364b183230586a62660a7280c1eb20138338eeb5",
              "status": "affected",
              "version": "fa724e235cfdb0fb0bb427d0f9dfe864ae27403e",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "6838bcac954487cc0a3c8a4ee1b3a3a30e244dc9",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "75640976cf474eb41682a13f2dbe9534ac26ca50",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "3513f3931c579ba2a715784c6dedc59e0d9282ee",
              "versionType": "git"
            },
            {
              "lessThan": "6.18.50",
              "status": "affected",
              "version": "6.18.44",
              "versionType": "semver"
            },
            {
              "lessThan": "6.13",
              "status": "affected",
              "version": "6.12.105",
              "versionType": "semver"
            },
            {
              "lessThan": "7.2",
              "status": "affected",
              "version": "7.1.8",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/file.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.2"
            },
            {
              "lessThan": "7.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.50",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.50",
                  "versionStartIncluding": "6.18.44",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.4",
                  "versionStartIncluding": "7.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "7.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.12.105",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "7.1.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC\n\ncifs_do_truncate() is invoked from cifs_open() without i_rwsem, so it\ncannot use cifs_resize_file_locked() to perform a proper fscache cookie\nresize.  Instead, add cifs_invalidate_cache() after cifs_setsize().\n\ncifs_invalidate_cache() calls fscache_invalidate(), which works without\nholding i_rwsem: it unconditionally increments inval_counter and sets\nFSCACHE_COOKIE_NO_DATA_TO_READ, ensuring that stale cached data is not\nserved once the cookie is later activated by fscache_use_cookie().\nTruncation to zero leaves no valid cached data, making invalidation the\ncorrect semantic here."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - cifs_do_truncate() runs from cifs_open() on the SMB client during a local open/openat with O_TRUNC on a mounted CIFS share (fs/smb/client/), not from ksmbd/nfsd or demux-thread packet parsing; a remote SMB peer cannot invoke this path.\nAC:L - A write-capable open with O_TRUNC deterministically skips fscache invalidation, then the same cifs_open() activates the cookie via fscache_use_cookie(); the attacker can also hold another fd so the cookie is already active, with no race or layout outside their control.\nPR:L - O_TRUNC requires only MAY_WRITE on the target inode, which an ordinary local user has on an already-mounted CIFS share; no init-namespace root, CAP_SYS_ADMIN, or user-namespace mount of CIFS is needed.\nUI:N - The attacker issues open(O_TRUNC) and follow-on reads/writes themselves; on common fstab/autofs/CIFS-home deployments with the fsc option already set, no other user must mount the share or open the file.\nS:U - Stale data stays within the local CIFS client\u0027s fscache and the same SMB file\u0027s contents; this is not a VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - After O_TRUNC the cookie is activated without FSCACHE_COOKIE_NO_DATA_TO_READ, so later reads (including holes after a size-extending write) can return the full previously truncated file contents that should have been discarded.\nI:H - The same stale cookie presents discarded bytes as current file data and can persist them to the SMB server via netfs read-modify-write/writeback, fully replacing zeros or newly written contents on that file.\nA:N - The flaw is fscache coherency only; it does not oops, panic, deadlock, or exhaust kernel resources, so host availability is unaffected."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T08:50:11.190Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8b9b10fe5b8b492b27b9f4546742ea541a650213"
        },
        {
          "url": "https://git.kernel.org/stable/c/81fc3868a7f726980ff845c1d0d271051e5f0f45"
        },
        {
          "url": "https://git.kernel.org/stable/c/364b183230586a62660a7280c1eb20138338eeb5"
        }
      ],
      "title": "cifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-89639",
    "datePublished": "2026-09-11T19:45:32.532Z",
    "dateReserved": "2026-09-11T19:38:34.740Z",
    "dateUpdated": "2026-10-19T08:50:11.190Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…