HIGH Introduced in 2.6.28
libertas_tf CmdTimer UAF
CVE-2026-98194
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: wifi: libertas_tf: fix UAF in lbtf_free_adapter() lbtf_free_adapter() calls lbtf_free_cmd_buffer() to free the command buffers before calling timer_delete_sync() to wait for the command timer callback. If the timer callback (command_timer_fn) is already running when lbtf_free_cmd_buffer() frees the command array, the callback dereferences priv->cur_cmd->cmdbuf which points to freed memory. Swap the order so that timer_delete_sync() runs first, ensuring any in-flight callback has completed before the command buffers are freed.
02KernelScan AI Analysis
Risk summary
A use-after-free in the libertas_tf WiFi driver occurs during adapter cleanup when command buffers are freed before the command timer callback is synchronized. A local attacker who can trigger device or interface teardown while the timer fires could exploit the race to corrupt kernel memory, potentially achieving privilege escalation or causing a kernel panic. The vulnerability requires the libertas_tf driver to be loaded with compatible Marvell USB WiFi hardware present.
Vulnerability analysis
During adapter teardown, the driver frees its command buffers before synchronizing with the command timer callback. If that timer callback is already running, it dereferences a pointer into the just-freed command buffer, producing a use-after-free. The fix reorders the cleanup so the timer is fully stopped and any in-flight callback has completed before the command buffers are released. The vulnerable path is reached locally — an attacker must trigger WiFi interface or device teardown (requiring CAP_NET_ADMIN, obtainable in a user namespace) on a system where the libertas_tf driver and compatible USB WiFi hardware are present. Exploitation depends on winning the race between the timer callback and the cleanup, making it timing-sensitive.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 2.6.28 | 5.10.271 | 3fb3663260ec |
| 5.15 | 2.6.28 | 5.15.222 | f6c3fa0d17ca |
| 6.1 | 2.6.28 | 6.1.189 | b4745d606375 |
| 6.12 | 2.6.28 | 6.12.112 | 2b99bfc5a127 |
| 6.18 | 2.6.28 | 6.18.54 | e82536aad653 |
| 6.6 | 2.6.28 | 6.6.158 | 41b1a4d545ec |
| 7.2 | 2.6.28 | 7.2.8 | 04c837d413dc |
| mainline | 2.6.28 | 7.3 | bbb9a0ab96d4 |
| cip/4.19 | 2.6.28 | 4.19.325-cip137 | 9bdf237f917a |
| cip/4.19-rt | 2.6.28 | 4.19.325-cip137-rt51 | 9bdf237f917a |
| cip/4.4 | 2.6.28 | 4.4.302-cip116 | 933dd1342ce2 |
| cip/5.10 | 2.6.28 | 5.10.271-cip78 | 3fb3663260ec |
| cip/5.10-rt | 2.6.28 | 5.10.272-cip79-rt35 | 3fb3663260ec |
| cip/6.1 | 2.6.28 | 6.1.189-cip61 | b4745d606375 |
| cip/6.1-rt | 2.6.28 | 6.1.189-cip61-rt32 | b4745d606375 |
| cip/6.12 | 2.6.28 | 6.12.112-cip33 | 2b99bfc5a127 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Fixed in 4.19.325-cip137 |
| cip/4.19-rt | Fixed in 4.19.325-cip137-rt51 |
| cip/4.4 | Fixed in 4.4.302-cip116 |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |