Skip to contentSkip to conversation

CVE-2026-98194: wifi: libertas_tf: fix UAF in lbtf_free_adapter()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-98194 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 5.10.271 with commit 3fb3663260ec396f86b733aab9f81fac6669d2fa
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 5.15.222 with commit f6c3fa0d17ca0c9e6033bb45f52e33b27a9a40e6
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.1.189 with commit b4745d6063758c681d33affca9733bbd356b6ea1
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.6.158 with commit 41b1a4d545ec348b7d5324b6d4f4c6a3e0326d46
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.12.112 with commit 2b99bfc5a127ce8cd6a887d82815fc2e712f365b
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.18.54 with commit e82536aad653e27c8ca7a8e0f6f816bc3f853ec3
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 7.2.8 with commit 04c837d413dc11a91e0275b08b9e35a6c111175e
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 7.3-rc4 with commit bbb9a0ab96d44a64529aafc7a16de460a1712f6a

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98194

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/net/wireless/marvell/libertas_tf/main.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/3fb3663260ec396f86b733aab9f81fac6669d2fa
	https://git.kernel.org/stable/c/f6c3fa0d17ca0c9e6033bb45f52e33b27a9a40e6
	https://git.kernel.org/stable/c/b4745d6063758c681d33affca9733bbd356b6ea1
	https://git.kernel.org/stable/c/41b1a4d545ec348b7d5324b6d4f4c6a3e0326d46
	https://git.kernel.org/stable/c/2b99bfc5a127ce8cd6a887d82815fc2e712f365b
	https://git.kernel.org/stable/c/e82536aad653e27c8ca7a8e0f6f816bc3f853ec3
	https://git.kernel.org/stable/c/04c837d413dc11a91e0275b08b9e35a6c111175e
	https://git.kernel.org/stable/c/bbb9a0ab96d44a64529aafc7a16de460a1712f6a