CVE-2022-49881

wifi: cfg80211: fix memory leak in query_regdb_file()

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 02:10 PM UTC
Updated: June 17, 2026 at 05:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.15 ≤ v < 4.19.2674.15 ≤ v < 5.10.1554.15 ≤ v < 5.15.794.15 ≤ v < 5.4.2254.15 ≤ v < 6.0.94.15 ≤ v < 6.14.20 ≤ v < 5.4.2255.11 ≤ v < 5.15.795.16 ≤ v < 6.0.95.5 ≤ v < 5.10.1556.1 rc16.1 rc26.1 rc36.1 rc47f6c5e6eb45c81ee89368a5f226572ae638831
Vendor states this is fixed in 0ede1a988299e95d54bd89551fd635980572e920 (fixed)
Vendor states this is fixed in 219446396786330937bcd382a7bc4ccd767383bc (fixed)
Vendor states this is fixed in 38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264 (fixed)
Vendor states this is fixed in 57b962e627ec0ae53d4d16d7bd1033e27e67677a (fixed)
Vendor states this is fixed in e1e12180321f416d83444f2cdc9259e0f5093d35 (fixed)
Vendor states this is fixed in e9b5a4566d5bc71cc901be50d1fa24da00613120 (fixed)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.267 (unaffected)
Vendor states this is fixed in 5.10.155 (unaffected)
Vendor states this is fixed in 5.15.79 (unaffected)
Vendor states this is fixed in 5.4.225 (unaffected)
Vendor states this is fixed in 6.0.9 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ede1a988299e95d54bd89551fd635980572e920
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/219446396786330937bcd382a7bc4ccd767383bc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/57b962e627ec0ae53d4d16d7bd1033e27e67677a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e1e12180321f416d83444f2cdc9259e0f5093d35
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e9b5a4566d5bc71cc901be50d1fa24da00613120

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card