wifi: cfg80211: fix memory leak in query_regdb_file()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 007f6c5e6eb45c81ee89368a5f226572ae638831 · < 57b962e627ec0ae53d4d16d7bd1033e27e67677a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: fix memory leak in query_regdb_file()
In the function query_regdb_file() the alpha2 parameter is duplicated using kmemdup() and subsequently freed in regdb_fw_cb(). However, request_firmware_nowait() can fail without calling regdb_fw_cb() and thus leak memory.
From the CVE record · Linux
The Linux kernel's cfg80211 query_regdb_file() function can leak memory if request_firmware_nowait() fails without calling the callback that frees a duplicated parameter. The input does not establish whether an attacker can trigger this failure or specify any access or user-interaction requirements.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.