CVE-2026-46305 staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc
A missing check for allocation failure in the rtl8723bs driver can cause a kernel crash via NULL pointer dereference.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-46305?
CVE-2026-46305 is a medium-severity vulnerability in Linux kernel, published on 8 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2026-46305?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-46305?
Apply the vendor's patch.
Is CVE-2026-46305 being exploited?
There is no known exploitation of CVE-2026-46305 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2026-46305, GHSA-qq6x-p5c6-gqp6, UBUNTU-CVE-2026-46305.