{"api_version":"1","generated_at":"2026-11-19T06:13:34+00:00","cve":"CVE-2026-99111","urls":{"html":"https://cve.report/CVE-2026-99111","api":"https://cve.report/api/cve/CVE-2026-99111.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99111","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99111"},"summary":{"title":"smb: client: fix data corruption with concurrent writes and O_TRUNC","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix data corruption with concurrent writes and O_TRUNC\n\ncifs_do_truncate() flushes dirty pages with filemap_write_and_wait()\nand truncates the file on the server, but in the old code both\noperations ran without holding i_rwsem or invalidate_lock.  A\nconcurrent buffered write via netfs_perform_write() -- which only\nneeds i_rwsem shared -- could dirty new pages after the flush but\nbefore the local truncation, and those pages would be silently\ndiscarded by cifs_setsize() -> truncate_pagecache().\n\nFix by acquiring inode_lock (exclusive i_rwsem) and\nfilemap_invalidate_lock at the top of cifs_do_truncate(), so the\nentire flush-truncate-resize sequence is atomic with respect to:\n\n  - buffered writes (blocked by exclusive i_rwsem, since\n    netfs_start_io_write takes i_rwsem shared),\n  - read page faults (blocked by exclusive invalidate_lock, since\n    filemap_fault takes it shared),\n  - writeback collection (blocked by netfs_wb_begin/netfs_wb_end\n    around the server truncate and local resize, since\n    netfs_writepages also acquires the wb lock).","state":"PUBLISHED","assigner":"Linux","published_at":"2026-10-28 11:17:30","updated_at":"2026-10-28 11:17:30"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/4d143608a0445443a85c9b29f4c9f8e63d5dbfc9","name":"https://git.kernel.org/stable/c/4d143608a0445443a85c9b29f4c9f8e63d5dbfc9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ffa66fdc7d35b890606767c4d2c7ac26b4d90a99","name":"https://git.kernel.org/stable/c/ffa66fdc7d35b890606767c4d2c7ac26b4d90a99","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a8603b52b39f520ea8a34def74c23fba87396d3e","name":"https://git.kernel.org/stable/c/a8603b52b39f520ea8a34def74c23fba87396d3e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99111","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99111","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 110fee6b9bb58a5c50047fc2594d415f741b591e 4d143608a0445443a85c9b29f4c9f8e63d5dbfc9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 110fee6b9bb58a5c50047fc2594d415f741b591e ffa66fdc7d35b890606767c4d2c7ac26b4d90a99 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 110fee6b9bb58a5c50047fc2594d415f741b591e a8603b52b39f520ea8a34def74c23fba87396d3e 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":"4d143608a0445443a85c9b29f4c9f8e63d5dbfc9","status":"affected","version":"110fee6b9bb58a5c50047fc2594d415f741b591e","versionType":"git"},{"lessThan":"ffa66fdc7d35b890606767c4d2c7ac26b4d90a99","status":"affected","version":"110fee6b9bb58a5c50047fc2594d415f741b591e","versionType":"git"},{"lessThan":"a8603b52b39f520ea8a34def74c23fba87396d3e","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\nsmb: client: fix data corruption with concurrent writes and O_TRUNC\n\ncifs_do_truncate() flushes dirty pages with filemap_write_and_wait()\nand truncates the file on the server, but in the old code both\noperations ran without holding i_rwsem or invalidate_lock.  A\nconcurrent buffered write via netfs_perform_write() -- which only\nneeds i_rwsem shared -- could dirty new pages after the flush but\nbefore the local truncation, and those pages would be silently\ndiscarded by cifs_setsize() -> truncate_pagecache().\n\nFix by acquiring inode_lock (exclusive i_rwsem) and\nfilemap_invalidate_lock at the top of cifs_do_truncate(), so the\nentire flush-truncate-resize sequence is atomic with respect to:\n\n  - buffered writes (blocked by exclusive i_rwsem, since\n    netfs_start_io_write takes i_rwsem shared),\n  - read page faults (blocked by exclusive invalidate_lock, since\n    filemap_fault takes it shared),\n  - writeback collection (blocked by netfs_wb_begin/netfs_wb_end\n    around the server truncate and local resize, since\n    netfs_writepages also acquires the wb lock)."}],"providerMetadata":{"dateUpdated":"2026-10-28T10:34:29.053Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/4d143608a0445443a85c9b29f4c9f8e63d5dbfc9"},{"url":"https://git.kernel.org/stable/c/ffa66fdc7d35b890606767c4d2c7ac26b4d90a99"},{"url":"https://git.kernel.org/stable/c/a8603b52b39f520ea8a34def74c23fba87396d3e"}],"title":"smb: client: fix data corruption with concurrent writes and O_TRUNC","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99111","datePublished":"2026-10-28T10:34:29.053Z","dateReserved":"2026-09-25T10:25:14.392Z","dateUpdated":"2026-10-28T10:34:29.053Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-10-28 11:17:30","lastModifiedDate":"2026-10-28 11:17:30","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99111","Ordinal":"1","Title":"smb: client: fix data corruption with concurrent writes and O_TR","CVE":"CVE-2026-99111","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99111","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix data corruption with concurrent writes and O_TRUNC\n\ncifs_do_truncate() flushes dirty pages with filemap_write_and_wait()\nand truncates the file on the server, but in the old code both\noperations ran without holding i_rwsem or invalidate_lock.  A\nconcurrent buffered write via netfs_perform_write() -- which only\nneeds i_rwsem shared -- could dirty new pages after the flush but\nbefore the local truncation, and those pages would be silently\ndiscarded by cifs_setsize() -> truncate_pagecache().\n\nFix by acquiring inode_lock (exclusive i_rwsem) and\nfilemap_invalidate_lock at the top of cifs_do_truncate(), so the\nentire flush-truncate-resize sequence is atomic with respect to:\n\n  - buffered writes (blocked by exclusive i_rwsem, since\n    netfs_start_io_write takes i_rwsem shared),\n  - read page faults (blocked by exclusive invalidate_lock, since\n    filemap_fault takes it shared),\n  - writeback collection (blocked by netfs_wb_begin/netfs_wb_end\n    around the server truncate and local resize, since\n    netfs_writepages also acquires the wb lock).","Type":"Description","Title":"smb: client: fix data corruption with concurrent writes and O_TR"}]}}}