CVE-2026-46305

staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc

Published Jun 8, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a NULL pointer dereference in the rtl8723bs driver for the Linux kernel. It occurs when the kernel fails to allocate a buffer with kzalloc_flex and proceeds to dereference the returned pointer unconditionally. This can cause the kernel to crash, resulting in a denial of service on the affected system. The weakness falls under CWE-476.

Affected Systems

Any Linux system that includes the rtl8723bs wireless driver prior to the application of the fix is affected. This encompasses most distributions that ship the driver in the staging tree of the kernel. No specific kernel version list is provided, but any kernel release before the commit that guards the allocation is vulnerable.

Risk and Exploitability

The CVSS score is 5.5, and the EPSS score is < 1%, so the precise quantitative risk can be assessed. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local kernel privileges to trigger the crash, so while it cannot lead to remote code execution, it can be triggered by an attacker with physical or local access to the system. The risk remains moderate, mainly due to potential service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the patch that checks the kzalloc_flex return value before dereferencing the pointer.
  • If an immediate kernel upgrade is not feasible, disable the rtl8723bs module to avoid using the vulnerable driver.
  • For custom kernels, manually apply the commit that adds the NULL check to the rtl8723bs driver source before building and installing the module.

Generated by OpenCVE AI on August 13, 2026 at 20:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-690
Type Values Removed Values Added
Weaknesses CWE-476
CWE-690
Type Values Removed Values Added
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.
Title staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Sep 14, 2026, 11:58 AM
Reserved
May 13, 2026, 3:03 PM
Status
Modified
Published
Jun 8, 2026, 5:16 PM
Modified
Sep 14, 2026, 12:17 PM
Severity
Public date
Jun 8, 2026, 12:00 AM