CVE-2026-99816 in Linuxinfo

Summary

by MITRE • 11/30/2026

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: take run_lock when freeing offs_folio in ni_decompress_file

attr_wof_frame_info() allocates, caches and dereferences ni->file.offs_folio under down_write(&ni->file.run_lock). ni_decompress_file() frees the same folio with folio_put() without taking run_lock. When a WOF externally-compressed file is opened for write, ni_decompress_file() can drop the last reference while a concurrent O_RDONLY reader is dereferencing the folio in attr_wof_frame_info(), leading to a use-after-free:

BUG: KASAN: use-after-free in attr_wof_frame_info (fs/ntfs3/attrib.c:1619) Read of size 4 at addr ffff8880120c9000 by task exploit Call Trace: attr_wof_frame_info (fs/ntfs3/attrib.c:1619) ni_read_frame (fs/ntfs3/frecord.c:2421) ni_read_folio_cmpr (fs/ntfs3/frecord.c:1916) ntfs_read_folio (fs/ntfs3/inode.c:648) read_pages (mm/readahead.c:181) page_cache_ra_unbounded (mm/readahead.c:292) force_page_cache_ra (mm/readahead.c:364) page_cache_sync_ra (mm/readahead.c:573) filemap_get_pages (mm/filemap.c:2688) filemap_read (mm/filemap.c:2806) generic_file_read_iter (mm/filemap.c:2994) ntfs_file_read_iter (fs/ntfs3/file.c:842) vfs_read (fs/read_write.c:574) __x64_sys_pread64 (fs/read_write.c:773)

Take run_lock around the folio_put(), as is done for every other access to ni->file.offs_folio.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/30/2026

The Linux kernel's NTFS3 filesystem driver contains a concurrency-related use-after-free vulnerability within its handling of externally compressed files, specifically involving the WOF (Windows Overlay File) compression format. This flaw arises from an inconsistency in lock management when accessing and modifying shared file system structures. The core issue is located in the interaction between two distinct code paths: one that reads decompressed data and another that frees memory associated with those decompression operations. Specifically, the function attr_wof_frame_info allocates, caches, and dereferences a folio pointer stored in ni->file.offs_folio while holding the write lock run_lock. This ensures exclusive access to the resource during critical read or setup phases. However, the counterpart operation performed by ni_decompress_file frees this same folio using folio_put without acquiring the corresponding run_lock first.

This lack of synchronization creates a race condition where concurrent operations can lead to memory corruption. When an externally compressed file is opened for writing, the system may trigger decompression logic that attempts to release references to previously cached data structures. If another thread or process concurrently opens the same file in read-only mode, it will attempt to access these cached folios through attr_wof_frame_info and subsequent reading functions like ni_read_folio_cmpr. Because the freeing operation does not hold the lock, it can execute simultaneously with a dereference operation by the reader. This results in the kernel attempting to read from memory that has already been returned to the allocator or freed, triggering a use-after-free condition detectable via Kernel Address Sanitizer (KASAN).

The operational impact of this vulnerability is significant for system stability and security integrity. The immediate consequence observed during exploitation attempts is a kernel panic or crash, as evidenced by KASAN reports indicating invalid memory reads at specific addresses within the ntfs3 module stack trace. Beyond denial-of-service conditions caused by system crashes, use-after-free vulnerabilities in kernel space are particularly dangerous because they can potentially be leveraged for privilege escalation attacks. An attacker with local access could theoretically manipulate the timing of these concurrent operations to overwrite freed memory structures with controlled data, thereby gaining arbitrary code execution capabilities within the kernel context. This undermines the isolation guarantees provided by the operating system and compromises the confidentiality, integrity, and availability of services relying on NTFS3 formatted volumes.

From a classification perspective, this vulnerability aligns with CWE-416: Use After Free, which describes situations where software continues to use memory after it has been freed, leading to undefined behavior. In terms of adversarial tactics, the exploitation vector relates to ATT&CK technique T1059: Command and Scripting Interpreter if an attacker uses local scripts to trigger the race condition, or more broadly falls under privilege escalation vectors that exploit kernel-level concurrency flaws. The root cause is a classic synchronization error where critical sections are not properly protected by mutual exclusion locks across all access paths to shared resources.

To mitigate this vulnerability, developers must ensure consistent lock acquisition patterns throughout the codebase. The primary remediation involves modifying ni_decompress_file to acquire run_lock before calling folio_put on ni->file.offs_folio. This ensures that any deallocation of the folio is serialized with respect to other operations that read or reference it, such as attr_wof_frame_info. By wrapping the free operation in the same lock used for allocation and dereference, the race window is eliminated. System administrators should apply kernel updates provided by their distribution vendors that include this patch. Until patches are applied, limiting write access to NTFS3 volumes with externally compressed files can reduce exposure, although complete mitigation requires addressing the underlying synchronization defect at the source code level.

Responsible

Linux

Reservation

09/25/2026

Disclosure

11/30/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!