# CVE-2022-49881: wifi: cfg80211: fix memory leak in query_regdb_file()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-05-01T14:10:28.610Z
- Modified: 2026-06-17T05:19:24.580Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 6.1 up to *)
- 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

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/219446396786330937bcd382a7bc4ccd767383bc> (patch)
- <https://git.kernel.org/stable/c/0ede1a988299e95d54bd89551fd635980572e920> (patch)
- <https://git.kernel.org/stable/c/e1e12180321f416d83444f2cdc9259e0f5093d35> (patch)
- <https://git.kernel.org/stable/c/38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264> (patch)
- <https://git.kernel.org/stable/c/e9b5a4566d5bc71cc901be50d1fa24da00613120> (patch)
- <https://git.kernel.org/stable/c/57b962e627ec0ae53d4d16d7bd1033e27e67677a> (patch)

## Sources

- CVE List: [CVE-2022-49881](https://www.cve.org/CVERecord?id=CVE-2022-49881), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49881](https://nvd.nist.gov/vuln/detail/CVE-2022-49881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49881 · Whole record: https://cve.day/CVE-2022-49881.json · Rebuilt by cve.day 2026-11-25T22:58:20.917Z
