Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-89639

published high CVSS 3.1 · 7.1

cifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC

Published
11 Sep 2026, 19:45:32 UTC
Updated
19 Oct 2026, 08:50:11 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxefbcecdecefc26fa062c0e8210533ccad7d6bd4a to < 8b9b10fe5b8b492b27b9f4546742ea541a650213 · fa724e235cfdb0fb0bb427d0f9dfe864ae27403e to < 81fc3868a7f726980ff845c1d0d271051e5f0f45 · fa724e235cfdb0fb0bb427d0f9dfe864ae27403e to < 364b183230586a62660a7280c1eb20138338eeb5 · 6838bcac954487cc0a3c8a4ee1b3a3a30e244dc9 · 75640976cf474eb41682a13f2dbe9534ac26ca50 · 3513f3931c579ba2a715784c6dedc59e0d9282ee · 6.18.44 to < 6.18.50 · 6.12.105 to < 6.13 · 7.1.8 to < 7.2 · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 6.18.50 through 6.18.* (unaffected · semver) · 7.2.4 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE openSUSE-Tumbleweed kernel-develaarch64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develppc64le Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-devels390x Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-develx86_64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
Show 12 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosaarch64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosppc64le Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macross390x Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-macrosx86_64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceaarch64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourceppc64le Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sources390x Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-sourcex86_64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillaaarch64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillappc64le Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillas390x Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1
SUSE / openSUSE openSUSE-Tumbleweed kernel-source-vanillax86_64 Advisory build 7.2.7-1.1 OPENSUSE-SU-2026:11880-1

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Scenarios
en: 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. AC: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. PR: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. UI: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. S:U - Stale data stays within the local CIFS client's fscache and the same SMB file's contents; this is not a VM escape, IOMMU bypass, or other cross-authority boundary crossing. C: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. I: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. A:N - The flaw is fscache coherency only; it does not oops, panic, deadlock, or exhaust kernel resources, so host availability is unaffected.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux efbcecdecefc26fa062c0e8210533ccad7d6bd4a to < 8b9b10fe5b8b492b27b9f4546742ea541a650213 (affected · git)fa724e235cfdb0fb0bb427d0f9dfe864ae27403e to < 81fc3868a7f726980ff845c1d0d271051e5f0f45 (affected · git)fa724e235cfdb0fb0bb427d0f9dfe864ae27403e to < 364b183230586a62660a7280c1eb20138338eeb5 (affected · git)6838bcac954487cc0a3c8a4ee1b3a3a30e244dc9 (affected · git)75640976cf474eb41682a13f2dbe9534ac26ca50 (affected · git)3513f3931c579ba2a715784c6dedc59e0d9282ee (affected · git)6.18.44 to < 6.18.50 (affected · semver)6.12.105 to < 6.13 (affected · semver)7.1.8 to < 7.2 (affected · semver)Default: unaffected Linux · cna
Linux Linux 7.2 (affected)0 to < 7.2 (unaffected · semver)6.18.50 through 6.18.* (unaffected · semver)7.2.4 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

cifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC

Provenance

Schema
5.2
Searchable
yes
Content hash
e3e2beb09eb809d154d1fb4eb022e3e28785efda83998d4dce441646b6b9062e
Ingested
19 Oct 2026, 08:57:05 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected