CVE-2026-72070: wifi: libertas_tf: fix use-after-free in lbtf_free_adapter()

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026081519-CVE-2026-72070-37bb@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

wifi: libertas_tf: fix use-after-free in lbtf_free_adapter()

lbtf_free_adapter() calls timer_delete(&priv->command_timer), which does
not wait for a running command_timer_fn() callback. lbtf_free_adapter()
runs on the teardown path right before ieee80211_free_hw() frees priv,
both in lbtf_remove_card() and in the probe error path. command_timer is
armed by mod_timer() in lbtf_cmd() whenever a firmware command is sent.
command_timer_fn() dereferences priv. If a command times out as the
device is removed, command_timer_fn() runs concurrently with teardown and
dereferences priv after it has been freed.

This is the same use-after-free that commit 03cc8f90d053 ("wifi: libertas:
fix use-after-free in lbs_free_adapter()") fixed in the sibling libertas
driver. The libertas_tf variant has the identical pattern and was left
unchanged. Use timer_delete_sync() so any in-flight callback completes
before priv is freed.

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


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

	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.6.148 with commit 4714e95f5d61cb9c5c7c6c4e68b618f37bc6ffcf
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.12.101 with commit 066b59e84f90d270cc15f0370166155aca507630
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 6.18.40 with commit fcff712d0e3d183843ec3916470ee6cc3455baad
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 7.1.5 with commit bcf7968cb97ce4312588042cf2712f04caff6d8f
	Issue introduced in 2.6.28 with commit 06b16ae5319251c26377afcb401e46056d5673f4 and fixed in 7.2-rc4 with commit aa6dcd5c8dd9ba1d7d0f60093bcda41c0d6d438d

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-72070
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/4714e95f5d61cb9c5c7c6c4e68b618f37bc6ffcf
	https://git.kernel.org/stable/c/066b59e84f90d270cc15f0370166155aca507630
	https://git.kernel.org/stable/c/fcff712d0e3d183843ec3916470ee6cc3455baad
	https://git.kernel.org/stable/c/bcf7968cb97ce4312588042cf2712f04caff6d8f
	https://git.kernel.org/stable/c/aa6dcd5c8dd9ba1d7d0f60093bcda41c0d6d438d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.