{"id":"CVE-2026-89639","published":"2026-09-11T19:45:32Z","modified":"2026-10-19T08:50:11Z","title":"cifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00125,"percentile":0.02161,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8b9b10fe5b8b492b27b9f4546742ea541a650213","tags":[]},{"url":"https://git.kernel.org/stable/c/81fc3868a7f726980ff845c1d0d271051e5f0f45","tags":[]},{"url":"https://git.kernel.org/stable/c/364b183230586a62660a7280c1eb20138338eeb5","tags":[]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":0.43},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= efbcecdecefc26fa062c0e8210533ccad7d6bd4a, < 8b9b10fe5b8b492b27b9f4546742ea541a650213",">= fa724e235cfdb0fb0bb427d0f9dfe864ae27403e, < 81fc3868a7f726980ff845c1d0d271051e5f0f45",">= fa724e235cfdb0fb0bb427d0f9dfe864ae27403e, < 364b183230586a62660a7280c1eb20138338eeb5","6838bcac954487cc0a3c8a4ee1b3a3a30e244dc9","75640976cf474eb41682a13f2dbe9534ac26ca50","3513f3931c579ba2a715784c6dedc59e0d9282ee",">= 6.18.44, < 6.18.50",">= 6.12.105, < 6.13",">= 7.1.8, < 7.2"]},{"vendor":"Linux","product":"Linux","versions":["7.2"]}],"euvd":{"id":"EUVD-2026-76551","exploited":false,"provenance":"source"}}