Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98194 Overview
CVE-2026-98194 is a use-after-free vulnerability in the Linux kernel's libertas_tf wireless driver. The flaw resides in lbtf_free_adapter(), which releases command buffers via lbtf_free_cmd_buffer() before calling timer_delete_sync() to wait for the command timer callback to finish. If the timer callback command_timer_fn is already executing when the command array is freed, the callback dereferences priv->cur_cmd->cmdbuf, which now points to freed memory. The upstream fix reorders the teardown so timer_delete_sync() runs first, ensuring any in-flight callback completes before the buffers are released.
Critical Impact
A race between driver teardown and the command timer callback can trigger a kernel-mode use-after-free, leading to memory corruption or denial of service on systems using the Marvell libertas thinfirm Wi-Fi driver.
Affected Products
- Linux kernel versions prior to the commits listed in the kernel.org stable tree
- Systems loading the libertas_tf Marvell thinfirm Wi-Fi driver
- Linux distributions shipping vulnerable stable and longterm kernel branches
Discovery Timeline
- 2026-10-06 - CVE-2026-98194 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98194
Vulnerability Analysis
The libertas_tf driver supports Marvell 8xxx thinfirm Wi-Fi hardware and uses a kernel timer, command_timer_fn, to handle command timeouts. During adapter teardown, lbtf_free_adapter() performs cleanup in an unsafe order: it invokes lbtf_free_cmd_buffer() to release the command buffer array first, and only afterward calls timer_delete_sync() to synchronize with the timer callback.
If the timer fires concurrently with teardown, the callback runs after the buffers have already been freed. The callback then dereferences priv->cur_cmd->cmdbuf, accessing memory that the kernel allocator may have reused. The result is classic use-after-free behavior in kernel context [CWE-416].
Root Cause
The root cause is incorrect teardown ordering between resource release and timer synchronization. The driver assumed buffer release was safe before draining in-flight timer callbacks. Because timer_delete_sync() is the only guarantee that no callback is still running, freeing the buffers earlier creates a race window where the callback dereferences dangling pointers.
Attack Vector
Triggering the race requires the driver to be loaded and in a state where the command timer can fire while the adapter is being torn down. Teardown typically occurs during module unload, device removal, or interface reset. The result is kernel memory corruption or a kernel panic. No specific exploitation code has been published, and the attack vector details are not enumerated in the NVD entry. See the Linux kernel stable commits for the patch details.
Detection Methods for CVE-2026-98194
Indicators of Compromise
- Kernel oops or panic messages referencing command_timer_fn, lbtf_free_adapter, or lbtf_free_cmd_buffer in dmesg or /var/log/kern.log
- KASAN use-after-free reports naming the libertas_tf module and command buffer allocations
- Unexpected system crashes correlated with wireless adapter removal or module unload events
Detection Strategies
- Enable Kernel Address Sanitizer (KASAN) in test and staging kernels to surface the use-after-free during driver teardown
- Audit loaded kernel modules for the presence of libertas_tf using lsmod and compare against a known-vulnerable kernel inventory
- Correlate kernel crash telemetry with wireless subsystem events to identify race-condition triggers
Monitoring Recommendations
- Centralize kernel log collection and alert on faults involving the libertas_tf driver symbols
- Track kernel build and patch levels across the fleet to confirm the fixed commits are deployed
- Monitor module load/unload events for libertas_tf on endpoints that do not require this legacy driver
How to Mitigate CVE-2026-98194
Immediate Actions Required
- Apply the Linux kernel stable updates containing the reordered teardown logic from the referenced commits
- Rebuild and redeploy custom kernels that include the libertas_tf driver after merging the fix
- Blacklist the libertas_tf module on systems that do not require Marvell thinfirm Wi-Fi hardware
Patch Information
The fix swaps the order of operations in lbtf_free_adapter() so that timer_delete_sync() runs before lbtf_free_cmd_buffer(). Patches are available across multiple stable branches via the kernel.org git tree, including commits 3fb3663260ec, 04c837d413dc, 2b99bfc5a127, 41b1a4d545ec, b4745d606375, bbb9a0ab96d4, e82536aad653, and f6c3fa0d17ca. Consume the fix through your distribution's updated kernel package where available.
Workarounds
- Prevent the vulnerable driver from loading by adding blacklist libertas_tf to a file under /etc/modprobe.d/ on systems without Marvell thinfirm hardware
- Avoid repeated adapter teardown or module unload operations on unpatched kernels that still ship the driver
- Restrict physical and administrative access that could allow an attacker to force driver reinitialization
# Configuration example: blacklist the vulnerable driver on systems that do not need it
echo 'blacklist libertas_tf' | sudo tee /etc/modprobe.d/blacklist-libertas_tf.conf
sudo update-initramfs -u
sudo reboot
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

