KernelScan.io

HIGH Introduced in 2.6.28

libertas_tf CmdTimer UAF

CVE-2026-98194

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.7.0

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.

Affecteddrivers/net/wireless/marvell/libertas_tf/main.c (libertas_tf WiFi driver)

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.

03

BranchIntroducedFixed inPatch commit
5.102.6.285.10.2713fb3663260ec
5.152.6.285.15.222f6c3fa0d17ca
6.12.6.286.1.189b4745d606375
6.122.6.286.12.1122b99bfc5a127
6.182.6.286.18.54e82536aad653
6.62.6.286.6.15841b1a4d545ec
7.22.6.287.2.804c837d413dc
mainline2.6.287.3bbb9a0ab96d4
cip/4.192.6.284.19.325-cip1379bdf237f917a
cip/4.19-rt2.6.284.19.325-cip137-rt519bdf237f917a
cip/4.42.6.284.4.302-cip116933dd1342ce2
cip/5.102.6.285.10.271-cip783fb3663260ec
cip/5.10-rt2.6.285.10.272-cip79-rt353fb3663260ec
cip/6.12.6.286.1.189-cip61b4745d606375
cip/6.1-rt2.6.286.1.189-cip61-rt32b4745d606375
cip/6.122.6.286.12.112-cip332b99bfc5a127

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtFixed in 4.19.325-cip137-rt51
cip/4.4Fixed in 4.4.302-cip116
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)