CVE-2022-49949

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49949
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49949.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49949
Downstream
Related
Published
2025-06-18T11:00:13.277Z
Modified
2025-12-04T18:30:49.587743Z
Summary
firmware_loader: Fix memory leak in firmware upload
Details

In the Linux kernel, the following vulnerability has been resolved:

firmware_loader: Fix memory leak in firmware upload

In the case of firmware-upload, an instance of struct fwupload is allocated in firmwareuploadregister(). This data needs to be freed in fwdevrelease(). Create a new fwuploadfree() function in sysfsupload.c to handle the firmware-upload specific memory frees and incorporate the missing kfree call for the fw_upload structure.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49949.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
97730bbb242cde22b7140acd202ffd88823886c9
Fixed
baf92485d111be828e1ab84a995515b604b938e5
Fixed
789bba82f63c3e81dce426ba457fc7905b30ac6e

Affected versions

v5.*

v5.18
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8
v5.19.1
v5.19.2
v5.19.3
v5.19.4
v5.19.5
v5.19.6
v5.19.7

v6.*

v6.0-rc1
v6.0-rc2

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.19.0
Fixed
5.19.8