5.5medium
wifi: cfg80211: fix memory leak in query_regdb_file()
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 007f6c5e6eb45c81ee89368a5f226572ae638831 before 219446396786330937bcd382a7bc4ccd767383bc, from 007f6c5e6eb45c81ee89368a5f226572ae638831 before 0ede1a988299e95d54bd89551fd635980572e920, from 007f6c5e6eb45c81ee89368a5f226572ae638831 before e1e12180321f416d83444f2cdc9259e0f5093d35, from 007f6c5e6eb45c81ee89368a5f226572ae638831 before 38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264, from 007f6c5e6eb45c81ee89368a5f226572ae638831 before e9b5a4566d5bc71cc901be50d1fa24da00613120, from 007f6c5e6eb45c81ee89368a5f226572ae638831 before 57b962e627ec0ae53d4d16d7bd1033e27e67677a, 4.15 Not affected: before 4.15, from 4.19.267 up to 4.19.*, from 5.4.225 up to 5.4.*, from 5.10.155 up to 5.10.*, from 5.15.79 up to 5.15.*, from 6.0.9 up to 6.0.* | CVE List |
| linux linux_kernel | from 4.15 before 4.19.267, from 4.20 before 5.4.225, from 5.5 before 5.10.155, from 5.11 before 5.15.79, from 5.16 before 6.0.9, 6.1 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: cfg80211: se corrige una fuga de memoria en query_regdb_file(). En la función query_regdb_file(), el parámetro alpha2 se duplica mediante kmemdup() y posteriormente se libera en regdb_fw_cb(). Sin embargo, request_firmware_nowait() puede fallar sin llamar a regdb_fw_cb() y, por lo tanto, provocar una fuga de memoria.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49881 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49881 changed 2026-06-17 | Public domain |