Bug 2363466 (CVE-2022-49881) - CVE-2022-49881 kernel: wifi: cfg80211: fix memory leak in query_regdb_file()
Summary: CVE-2022-49881 kernel: wifi: cfg80211: fix memory leak in query_regdb_file()
Keywords:
Status: NEW
Alias: CVE-2022-49881
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-01 15:05 UTC by OSIDB Bzimport
Modified: 2025-06-06 02:16 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:05:46 UTC
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.

Comment 1 Avinash Hanwate 2025-05-02 03:55:24 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050154-CVE-2022-49881-3caa@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.