{"id":"CVE-2026-99816","aliases":["CVE-2026-99816"],"related":[],"kind":"vulnerability","state":"published","title":"fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T07:52:18.971Z","modified":"2026-12-01T06:17:51.930Z","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:H","score":7.8,"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:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4342306f0f0d5ff4315a204d315c1b51b914fca5","fixed":"54c86540227047f1da386d95e495c39325b39ca5","status":"affected"},{"type":"git","introduced":"4342306f0f0d5ff4315a204d315c1b51b914fca5","fixed":"7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27","status":"affected"},{"type":"git","introduced":"4342306f0f0d5ff4315a204d315c1b51b914fca5","fixed":"1870c0cdc16b24dc781ab64ac7394e06231c2010","status":"affected"},{"type":"git","introduced":"4342306f0f0d5ff4315a204d315c1b51b914fca5","fixed":"815ab354f4b53709959af1a0f8dd49177ec85f85","status":"affected"},{"type":"git","introduced":"4342306f0f0d5ff4315a204d315c1b51b914fca5","fixed":"b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7","status":"affected"},{"type":"git","introduced":"4342306f0f0d5ff4315a204d315c1b51b914fca5","fixed":"ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/54c86540227047f1da386d95e495c39325b39ca5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c9a86ea4ca7dad5e07b01c82f8b02ec1e248a27","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1870c0cdc16b24dc781ab64ac7394e06231c2010","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/815ab354f4b53709959af1a0f8dd49177ec85f85","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7d33425b951b7a14bb8bb4b3ef52f942bffc4f7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ad39d8d90fa0fd99b2714d4c84c6f4e1c399f1f4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99816","url":"https://www.cve.org/CVERecord?id=CVE-2026-99816","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:34.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99816","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99816","licence":"Public domain","modified":"2026-12-01T06:17:51.930Z"}],"updatedAt":"2026-12-01T06:32:13.758Z","epss":{"score":0.00268,"percentile":0.20196,"date":"2026-12-01T12:00:22.000Z"}}