staging: rtl8723bs: os_dep: avoid NULL pointer dereference in rtw_cbuf_alloc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
7.0.77.1In 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.
From the CVE record · Linux
The Linux kernel's rtl8723bs driver dereferences the result of kzalloc_flex() without checking whether allocation succeeded. If allocation fails, this can cause a NULL pointer dereference. The input does not establish how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel with the rtl8723bs driver should check their installations; affected versions were not provided.