What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 4.19.267, 5.10.155, 5.15.79, 5.4.225. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49881 or the next vulnerability affects your stack