Skip to contentSkip to conversation

CVE-2024-47721: wifi: rtw89: remove unused C2H event ID RTW89_MAC_C2H_FUNC_READ_WOW_CAM to prevent out-of-bounds reading

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 21, 2024

lore
Share & tools
lore
#0 lore raw

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

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

wifi: rtw89: remove unused C2H event ID RTW89_MAC_C2H_FUNC_READ_WOW_CAM to prevent out-of-bounds reading

The handler of firmware C2H event RTW89_MAC_C2H_FUNC_READ_WOW_CAM isn't implemented, but driver expects number of handlers is NUM_OF_RTW89_MAC_C2H_FUNC_WOW causing out-of-bounds access. Fix it by removing ID.

Addresses-Coverity-ID: 1598775 ("Out-of-bounds read")

The Linux kernel CVE team has assigned CVE-2024-47721 to this issue.

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

Issue introduced in 6.10 with commit ff53fce5c78b and fixed in 6.10.13 with commit 10463308b945 Issue introduced in 6.10 with commit ff53fce5c78b and fixed in 6.11.2 with commit 2c9c2d1a2091 Issue introduced in 6.10 with commit ff53fce5c78b and fixed in 6.12-rc1 with commit 56310ddb50b1

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-2024-47721

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/rtw89/mac.h

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/10463308b9454f534d03300cf679bc4b3d078f46
	https://git.kernel.org/stable/c/2c9c2d1a20916589497a7facbea3e82cabec4ab8
	https://git.kernel.org/stable/c/56310ddb50b190b3390fdc974aec455d0a516bd2