{"api_version":"1","generated_at":"2026-12-01T14:21:16+00:00","cve":"CVE-2026-99816","urls":{"html":"https://cve.report/CVE-2026-99816","api":"https://cve.report/api/cve/CVE-2026-99816.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99816","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99816"},"summary":{"title":"fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file\n\nattr_wof_frame_info() allocates, caches and dereferences\nni->file.offs_folio under down_write(&ni->file.run_lock).\nni_decompress_file() frees the same folio with folio_put() without\ntaking run_lock. When a WOF externally-compressed file is opened for\nwrite, ni_decompress_file() can drop the last reference while a\nconcurrent O_RDONLY reader is dereferencing the folio in\nattr_wof_frame_info(), leading to a use-after-free:\n\n BUG: KASAN: use-after-free in attr_wof_frame_info (fs/ntfs3/attrib.c:1619)\n Read of size 4 at addr ffff8880120c9000 by task exploit\n Call Trace:\n  attr_wof_frame_info (fs/ntfs3/attrib.c:1619)\n  ni_read_frame (fs/ntfs3/frecord.c:2421)\n  ni_read_folio_cmpr (fs/ntfs3/frecord.c:1916)\n  ntfs_read_folio (fs/ntfs3/inode.c:648)\n  read_pages (mm/readahead.c:181)\n  page_cache_ra_unbounded (mm/readahead.c:292)\n  force_page_cache_ra (mm/readahead.c:364)\n  page_cache_sync_ra (mm/readahead.c:573)\n  filemap_get_pages (mm/filemap.c:2688)\n  filemap_read (mm/filemap.c:2806)\n  generic_file_read_iter (mm/filemap.c:2994)\n  ntfs_file_read_iter (fs/ntfs3/file.c:842)\n  vfs_read (fs/read_write.c:574)\n  __x64_sys_pread64 (fs/read_write.c:773)\n\nTake run_lock around the folio_put(), as is done for every other\naccess to ni->file.offs_folio.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 08:18:02","updated_at":"2026-12-01 06:17:51"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7","name":"https://git.kernel.org/stable/c/b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/815ab354f4b53709959af1a0f8dd49177ec85f85","name":"https://git.kernel.org/stable/c/815ab354f4b53709959af1a0f8dd49177ec85f85","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1870c0cdc16b24dc781ab64ac7394e06231c2010","name":"https://git.kernel.org/stable/c/1870c0cdc16b24dc781ab64ac7394e06231c2010","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/54c86540227047f1da386d95e495c39325b39ca5","name":"https://git.kernel.org/stable/c/54c86540227047f1da386d95e495c39325b39ca5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27","name":"https://git.kernel.org/stable/c/7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4","name":"https://git.kernel.org/stable/c/ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99816","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99816","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 54c86540227047f1da386d95e495c39325b39ca5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 1870c0cdc16b24dc781ab64ac7394e06231c2010 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 815ab354f4b53709959af1a0f8dd49177ec85f85 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4342306f0f0d5ff4315a204d315c1b51b914fca5 ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * 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/ntfs3/frecord.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"54c86540227047f1da386d95e495c39325b39ca5","status":"affected","version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","versionType":"git"},{"lessThan":"7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27","status":"affected","version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","versionType":"git"},{"lessThan":"1870c0cdc16b24dc781ab64ac7394e06231c2010","status":"affected","version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","versionType":"git"},{"lessThan":"815ab354f4b53709959af1a0f8dd49177ec85f85","status":"affected","version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","versionType":"git"},{"lessThan":"b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7","status":"affected","version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","versionType":"git"},{"lessThan":"ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4","status":"affected","version":"4342306f0f0d5ff4315a204d315c1b51b914fca5","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ntfs3/frecord.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.15"},{"lessThan":"5.15","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.15","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.15","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file\n\nattr_wof_frame_info() allocates, caches and dereferences\nni->file.offs_folio under down_write(&ni->file.run_lock).\nni_decompress_file() frees the same folio with folio_put() without\ntaking run_lock. When a WOF externally-compressed file is opened for\nwrite, ni_decompress_file() can drop the last reference while a\nconcurrent O_RDONLY reader is dereferencing the folio in\nattr_wof_frame_info(), leading to a use-after-free:\n\n BUG: KASAN: use-after-free in attr_wof_frame_info (fs/ntfs3/attrib.c:1619)\n Read of size 4 at addr ffff8880120c9000 by task exploit\n Call Trace:\n  attr_wof_frame_info (fs/ntfs3/attrib.c:1619)\n  ni_read_frame (fs/ntfs3/frecord.c:2421)\n  ni_read_folio_cmpr (fs/ntfs3/frecord.c:1916)\n  ntfs_read_folio (fs/ntfs3/inode.c:648)\n  read_pages (mm/readahead.c:181)\n  page_cache_ra_unbounded (mm/readahead.c:292)\n  force_page_cache_ra (mm/readahead.c:364)\n  page_cache_sync_ra (mm/readahead.c:573)\n  filemap_get_pages (mm/filemap.c:2688)\n  filemap_read (mm/filemap.c:2806)\n  generic_file_read_iter (mm/filemap.c:2994)\n  ntfs_file_read_iter (fs/ntfs3/file.c:842)\n  vfs_read (fs/read_write.c:574)\n  __x64_sys_pread64 (fs/read_write.c:773)\n\nTake run_lock around the folio_put(), as is done for every other\naccess to ni->file.offs_folio."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The patched ni_decompress_file() is reached only from ntfs_file_open() on a local open(2) with O_WRONLY/O_RDWR/O_TRUNC, racing a local pread64 -> ntfs_read_folio -> ni_read_folio_cmpr -> ni_read_frame -> attr_wof_frame_info(). This is a pure locking defect: no malformed input exists, and no remote protocol supplies or reads back the data the defect damages.\nAC:L - The attacker runs both sides: a pread loop (fadvise DONTNEED, frames in another offset-table page so ntfs_read_run I/O happens under run_lock) against their own open(O_WRONLY). Each try decompresses one WOF file, but CompactOS volumes or the user's own udisks2 loop-mounted image hold many. The reporter's KASAN trace comes from an \"exploit\" task.\nPR:L - Needs only ordinary read and write permission on a WOF-compressed file on a read-write ntfs3 mount. ntfs3 sets owner and mode of Windows-created files from mount uid/fmask (udisks2 passes the session uid=), and ntfs_file_open() has no capability check. ntfs3 lacks FS_USERNS_MOUNT, so this is a normal local user, not namespace root.\nUI:N - No crafted image is needed. Files with IO_REPARSE_TAG_COMPRESS plus WofCompressedData are legitimate Windows compact/CompactOS content that ni_parse_reparse() accepts. The attacker issues both the triggering open and the racing reads, so no victim takes any action.\nS:U - The freed folio and every structure that can reuse the page are in the same kernel. This is local privilege escalation within one security authority, with no guest, IOMMU or sandbox boundary crossed.\nC:H - attr_wof_frame_info() keeps reading offsets from offs_folio after ni_decompress_file() has returned it to the buddy allocator (KASAN use-after-free). Combined with the write primitive, cross-cache page reuse gives kernel memory disclosure.\nI:H - When the frame's offset entry is on a page other than folio->index, the stale reader's ntfs_read_run() copies up to PAGE_SIZE bytes of WofCompressedData into the freed page. It also writes folio->index and calls folio_unlock on it, corrupting whatever reallocated that page.\nA:H - Use of the freed offs_folio, and corruption of the page's new owner, produce KASAN reports, oopses or panics. The attacker can repeat this once per available WOF file."}]}],"providerMetadata":{"dateUpdated":"2026-12-01T05:43:34.552Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/54c86540227047f1da386d95e495c39325b39ca5"},{"url":"https://git.kernel.org/stable/c/7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27"},{"url":"https://git.kernel.org/stable/c/1870c0cdc16b24dc781ab64ac7394e06231c2010"},{"url":"https://git.kernel.org/stable/c/815ab354f4b53709959af1a0f8dd49177ec85f85"},{"url":"https://git.kernel.org/stable/c/b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7"},{"url":"https://git.kernel.org/stable/c/ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4"}],"title":"fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99816","datePublished":"2026-11-30T07:52:18.971Z","dateReserved":"2026-09-25T10:25:14.436Z","dateUpdated":"2026-12-01T05:43:34.552Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 08:18:02","lastModifiedDate":"2026-12-01 06:17:51","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99816","Ordinal":"1","Title":"fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress","CVE":"CVE-2026-99816","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99816","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file\n\nattr_wof_frame_info() allocates, caches and dereferences\nni->file.offs_folio under down_write(&ni->file.run_lock).\nni_decompress_file() frees the same folio with folio_put() without\ntaking run_lock. When a WOF externally-compressed file is opened for\nwrite, ni_decompress_file() can drop the last reference while a\nconcurrent O_RDONLY reader is dereferencing the folio in\nattr_wof_frame_info(), leading to a use-after-free:\n\n BUG: KASAN: use-after-free in attr_wof_frame_info (fs/ntfs3/attrib.c:1619)\n Read of size 4 at addr ffff8880120c9000 by task exploit\n Call Trace:\n  attr_wof_frame_info (fs/ntfs3/attrib.c:1619)\n  ni_read_frame (fs/ntfs3/frecord.c:2421)\n  ni_read_folio_cmpr (fs/ntfs3/frecord.c:1916)\n  ntfs_read_folio (fs/ntfs3/inode.c:648)\n  read_pages (mm/readahead.c:181)\n  page_cache_ra_unbounded (mm/readahead.c:292)\n  force_page_cache_ra (mm/readahead.c:364)\n  page_cache_sync_ra (mm/readahead.c:573)\n  filemap_get_pages (mm/filemap.c:2688)\n  filemap_read (mm/filemap.c:2806)\n  generic_file_read_iter (mm/filemap.c:2994)\n  ntfs_file_read_iter (fs/ntfs3/file.c:842)\n  vfs_read (fs/read_write.c:574)\n  __x64_sys_pread64 (fs/read_write.c:773)\n\nTake run_lock around the folio_put(), as is done for every other\naccess to ni->file.offs_folio.","Type":"Description","Title":"fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress"}]}}}