Skip to contentSkip to conversation

CVE-2025-71273: wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 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: rtw88: Use devm_kmemdup() in rtw_set_supported_band()

Simplify the code by using device managed memory allocations.

This also fixes a memory leak in rtw_register_hw(). The supported bands were not freed in the error path.

Copied from commit 145df52a8671 ("wifi: rtw89: Convert rtw89_core_set_supported_band to use devm_*").

The Linux kernel CVE team has assigned CVE-2025-71273 to this issue.

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

	Fixed in 6.12.75 with commit 9b5418070ee8468fac9e8bf641c83d46b85bff30
	Fixed in 6.18.16 with commit ad9b80ee310ed734482a2e5da874b67f88ac0ef8
	Fixed in 6.19.6 with commit 1bd90e0a99fdc8dc5deb3c92bf865e4496b4b311
	Fixed in 7.0 with commit 2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d

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-2025-71273

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/realtek/rtw88/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/9b5418070ee8468fac9e8bf641c83d46b85bff30
	https://git.kernel.org/stable/c/ad9b80ee310ed734482a2e5da874b67f88ac0ef8
	https://git.kernel.org/stable/c/1bd90e0a99fdc8dc5deb3c92bf865e4496b4b311
	https://git.kernel.org/stable/c/2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d