{"api_version":"1","generated_at":"2026-11-10T08:57:48+00:00","cve":"CVE-2026-99137","urls":{"html":"https://cve.report/CVE-2026-99137","api":"https://cve.report/api/cve/CVE-2026-99137.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99137","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99137"},"summary":{"title":"cifs: don't update i_size in cifs_do_truncate without a cached handle","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: don't update i_size in cifs_do_truncate without a cached handle\n\nIf find_writable_file() returns null, cifs_file_flush will return\n0 without issuing set_file_size, and the outer 'if (!rc)' block\nwill set i_size to 0 before telling the server to truncate.  If\nthe cifs_open() then fails, the inode will have size 0, while\nthe server file is unchanged.\n\nMove the netfs_resize_file() and cifs_setsize() into the 'if\n(cfile)', so they only run after a successful set_file_size.\n\nIn the no-handle else branch, evict stale pages with\ntruncate_inode_pages before the O_TRUNC open to dispose of old\ncache pages, and let the open response set the i_size.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-28 11:17:33","updated_at":"2026-10-28 11:17:33"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/88a51743cd8094b76fd910f53f718747c7729cc8","name":"https://git.kernel.org/stable/c/88a51743cd8094b76fd910f53f718747c7729cc8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/04d020b3d0b58a1b7e116900e4095b96a7f4e11a","name":"https://git.kernel.org/stable/c/04d020b3d0b58a1b7e116900e4095b96a7f4e11a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fe39cd9d48f2346605f3746e0cc19e89d5f373eb","name":"https://git.kernel.org/stable/c/fe39cd9d48f2346605f3746e0cc19e89d5f373eb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99137","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99137","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 110fee6b9bb58a5c50047fc2594d415f741b591e 04d020b3d0b58a1b7e116900e4095b96a7f4e11a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 110fee6b9bb58a5c50047fc2594d415f741b591e 88a51743cd8094b76fd910f53f718747c7729cc8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 110fee6b9bb58a5c50047fc2594d415f741b591e fe39cd9d48f2346605f3746e0cc19e89d5f373eb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.59 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.13 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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":"04d020b3d0b58a1b7e116900e4095b96a7f4e11a","status":"affected","version":"110fee6b9bb58a5c50047fc2594d415f741b591e","versionType":"git"},{"lessThan":"88a51743cd8094b76fd910f53f718747c7729cc8","status":"affected","version":"110fee6b9bb58a5c50047fc2594d415f741b591e","versionType":"git"},{"lessThan":"fe39cd9d48f2346605f3746e0cc19e89d5f373eb","status":"affected","version":"110fee6b9bb58a5c50047fc2594d415f741b591e","versionType":"git"}]},{"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":"6.18"},{"lessThan":"6.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.59","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.13","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.59","versionStartIncluding":"6.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.13","versionStartIncluding":"6.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3","versionStartIncluding":"6.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: don't update i_size in cifs_do_truncate without a cached handle\n\nIf find_writable_file() returns null, cifs_file_flush will return\n0 without issuing set_file_size, and the outer 'if (!rc)' block\nwill set i_size to 0 before telling the server to truncate.  If\nthe cifs_open() then fails, the inode will have size 0, while\nthe server file is unchanged.\n\nMove the netfs_resize_file() and cifs_setsize() into the 'if\n(cfile)', so they only run after a successful set_file_size.\n\nIn the no-handle else branch, evict stale pages with\ntruncate_inode_pages before the O_TRUNC open to dispose of old\ncache pages, and let the open response set the i_size."}],"providerMetadata":{"dateUpdated":"2026-10-28T10:34:49.266Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/04d020b3d0b58a1b7e116900e4095b96a7f4e11a"},{"url":"https://git.kernel.org/stable/c/88a51743cd8094b76fd910f53f718747c7729cc8"},{"url":"https://git.kernel.org/stable/c/fe39cd9d48f2346605f3746e0cc19e89d5f373eb"}],"title":"cifs: don't update i_size in cifs_do_truncate without a cached handle","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99137","datePublished":"2026-10-28T10:34:49.266Z","dateReserved":"2026-09-25T10:25:14.395Z","dateUpdated":"2026-10-28T10:34:49.266Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-28 11:17:33","lastModifiedDate":"2026-10-28 11:17:33","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99137","Ordinal":"1","Title":"cifs: don't update i_size in cifs_do_truncate without a cached h","CVE":"CVE-2026-99137","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99137","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: don't update i_size in cifs_do_truncate without a cached handle\n\nIf find_writable_file() returns null, cifs_file_flush will return\n0 without issuing set_file_size, and the outer 'if (!rc)' block\nwill set i_size to 0 before telling the server to truncate.  If\nthe cifs_open() then fails, the inode will have size 0, while\nthe server file is unchanged.\n\nMove the netfs_resize_file() and cifs_setsize() into the 'if\n(cfile)', so they only run after a successful set_file_size.\n\nIn the no-handle else branch, evict stale pages with\ntruncate_inode_pages before the O_TRUNC open to dispose of old\ncache pages, and let the open response set the i_size.","Type":"Description","Title":"cifs: don't update i_size in cifs_do_truncate without a cached h"}]}}}