{"id":"CVE-2026-89639","aliases":["CVE-2026-89639"],"related":[],"kind":"vulnerability","state":"published","title":"cifs: use cifs_invalidate_cache() in cifs_do_truncate() for O_TRUNC","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-09-11T19:45:32.532Z","modified":"2026-10-19T09:18:01.053Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"efbcecdecefc26fa062c0e8210533ccad7d6bd4a","fixed":"8b9b10fe5b8b492b27b9f4546742ea541a650213","status":"affected"},{"type":"git","introduced":"fa724e235cfdb0fb0bb427d0f9dfe864ae27403e","fixed":"81fc3868a7f726980ff845c1d0d271051e5f0f45","status":"affected"},{"type":"git","introduced":"fa724e235cfdb0fb0bb427d0f9dfe864ae27403e","fixed":"364b183230586a62660a7280c1eb20138338eeb5","status":"affected"},{"type":"git","version":"6838bcac954487cc0a3c8a4ee1b3a3a30e244dc9","status":"affected"},{"type":"git","version":"75640976cf474eb41682a13f2dbe9534ac26ca50","status":"affected"},{"type":"git","version":"3513f3931c579ba2a715784c6dedc59e0d9282ee","status":"affected"},{"type":"semver","introduced":"6.18.44","fixed":"6.18.50","status":"affected"},{"type":"semver","introduced":"6.12.105","fixed":"6.13","status":"affected"},{"type":"semver","introduced":"7.1.8","fixed":"7.2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.2","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8b9b10fe5b8b492b27b9f4546742ea541a650213","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81fc3868a7f726980ff845c1d0d271051e5f0f45","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/364b183230586a62660a7280c1eb20138338eeb5","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89639","url":"https://www.cve.org/CVERecord?id=CVE-2026-89639","licence":"CVE Terms of Use","modified":"2026-10-19T08:50:11.190Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89639","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89639","licence":"Public domain","modified":"2026-10-19T09:18:01.053Z"}],"updatedAt":"2026-11-25T22:59:38.093Z","epss":{"score":0.00125,"percentile":0.02365,"date":"2026-12-01T12:00:22.000Z"}}