# CVE-2022-49949: firmware_loader: Fix memory leak in firmware upload

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `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.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2025-06-18T11:00:13.277Z
- Modified: 2026-06-17T05:19:36.243Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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 fw_upload is
allocated in firmware_upload_register(). This data needs to be freed
in fw_dev_release(). Create a new fw_upload_free() function in
sysfs_upload.c to handle the firmware-upload specific memory frees
and incorporate the missing kfree call for the fw_upload structure.

(As written by CVE List.)

## Affected

- Linux Linux: from 97730bbb242cde22b7140acd202ffd88823886c9 before baf92485d111be828e1ab84a995515b604b938e5; from 97730bbb242cde22b7140acd202ffd88823886c9 before 789bba82f63c3e81dce426ba457fc7905b30ac6e; 5.19 (not affected: before 5.19; from 5.19.8 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.19 before 5.19.8; 6.0

## References

- <https://git.kernel.org/stable/c/baf92485d111be828e1ab84a995515b604b938e5> (patch)
- <https://git.kernel.org/stable/c/789bba82f63c3e81dce426ba457fc7905b30ac6e> (patch)

## Sources

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

---

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