Skip to contentSkip to conversation

CVE-2026-46305: staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 8

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: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc

The return value of kzalloc_flex() is used without ensuring that the allocation succeeded, and the pointer is dereferenced unconditionally.

Guard the access to the allocated structure to
avoid a potential NULL pointer dereference if the
allocation fails.

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

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

	Issue introduced in 7.0 with commit 980cd426a25747daf8ed25e2a1904b2d26ffbb3d and fixed in 7.0.7 with commit 0a5f411becfb7c57aa89827213d31ef23a03d75a
	Issue introduced in 7.0 with commit 980cd426a25747daf8ed25e2a1904b2d26ffbb3d and fixed in 7.1-rc3 with commit bc851db06045a40c18233dd76ef0562d7f8bb6db

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

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/os_dep/osdep_service.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/0a5f411becfb7c57aa89827213d31ef23a03d75a
	https://git.kernel.org/stable/c/bc851db06045a40c18233dd76ef0562d7f8bb6db