staging: rtl8723bs: fix memory leak on failure path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 554c0a3abf216c991c5ebddcdb2c08689ecd290b · < 017295b17bf1f477246c95bd253a7ef0cb4684c9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8723bs: fix memory leak on failure path
cfg80211_inform_bss_frame() may return NULL on failure. In that case, the allocated buffer 'buf' is not freed and the function returns early, leading to potential memory leak. Fix this by ensuring that 'buf' is freed on both success and failure paths.
From the CVE record · Linux
The Linux kernel's staging rtl8723bs component can leak an allocated buffer when cfg80211_inform_bss_frame() fails and returns NULL. The input does not establish how an attacker could trigger the failure, or whether access or user interaction is required.
Engineers running Linux kernels with the staging rtl8723bs component should check their exposure; affected versions were not provided.