Skip to contentSkip to conversation

CVE-2026-90017: staging: rtl8723bs: fix OOB read in rtw_action_frame_parse()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

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

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

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

staging: rtl8723bs: fix OOB read in rtw_action_frame_parse()

rtw_action_frame_parse() takes a frame_len parameter but never actually checks it before indexing into the frame body:

	const u8 *frame_body = frame + sizeof(struct ieee80211_hdr_3addr);
	...
	c = frame_body[0];
	...
	a = frame_body[1];

frame_body already points 24 bytes (sizeof(struct ieee80211_hdr_3addr)) into frame, so reading frame_body[0] and frame_body[1] requires frame_len >= 26. A management action frame shorter than that (e.g. exactly 24 bytes, the minimum a malicious peer can send) causes a 1-2 byte out-of-bounds read.

This is reachable from rtw_cfg80211_monitor_if_xmit_entry() and cfg80211_rtw_mgmt_tx() in ioctl_cfg80211.c, both of which pass attacker/user-influenced frame buffers and lengths straight through.

Add the missing length check before frame_body is dereferenced.

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

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

	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 5.10.270 with commit 15081ff835b29e456da29303b32efc436df04695
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 5.15.221 with commit 310aaa8058d19cc431aedac0f5bb814e84479393
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.1.188 with commit 1410bce22351ba15d8e58287cbf09d55d7f21fc9
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.6.157 with commit 0b7f64c7bb9664777168768c6b44affb07dcbf24
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.12.110 with commit 136f9a3ab87ded8aaf081425cfb2059659dd9023
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 6.18.51 with commit b041e3f35e0d262d42a711094ab594634d72744a
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 7.2.5 with commit a54fd1a44862d263df9f8bc17fca3620be31addb
	Issue introduced in 4.12 with commit 554c0a3abf216c991c5ebddcdb2c08689ecd290b and fixed in 7.3-rc2 with commit ff917923f4fb9c83717ba135ee47d7e4c1567bb7

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-90017

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/staging/rtl8723bs/core/rtw_ieee80211.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/15081ff835b29e456da29303b32efc436df04695
	https://git.kernel.org/stable/c/310aaa8058d19cc431aedac0f5bb814e84479393
	https://git.kernel.org/stable/c/1410bce22351ba15d8e58287cbf09d55d7f21fc9
	https://git.kernel.org/stable/c/0b7f64c7bb9664777168768c6b44affb07dcbf24
	https://git.kernel.org/stable/c/136f9a3ab87ded8aaf081425cfb2059659dd9023
	https://git.kernel.org/stable/c/b041e3f35e0d262d42a711094ab594634d72744a
	https://git.kernel.org/stable/c/a54fd1a44862d263df9f8bc17fca3620be31addb
	https://git.kernel.org/stable/c/ff917923f4fb9c83717ba135ee47d7e4c1567bb7