firmware_loader: Fix memory leak in firmware upload
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.19.8
- CVEs
- CVE-2022-49949
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 21:50 UTC · Revision 1
Source evidence
firmware_loader: Fix memory leak in firmware upload
core-osv · Original sourcePublished 18 Jun 2025, 11:00 UTC
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.
osv:CVE-2022-49949
Kernel
Fixed versions: 5.19.8
Complete source record
{
"id": "677914946ef849a5a637a880c2b0892c4a2152b22a7ba3a7b87c8d9289b4af04",
"url": "https://osv.dev/vulnerability/CVE-2022-49949",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "firmware_loader: Fix memory leak in firmware upload",
"summary": "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.",
"evidence": "osv:CVE-2022-49949",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.19.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-49949",
"aliases": [
"CVE-2022-49949"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "97730bbb242cde22b7140acd202ffd88823886c9"
},
{
"fixed": "baf92485d111be828e1ab84a995515b604b938e5"
},
{
"fixed": "789bba82f63c3e81dce426ba457fc7905b30ac6e"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49949.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.19.0"
},
{
"fixed": "5.19.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49949.json"
}
}
],
"modified": "2026-10-28T02:30:23.922596247Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/789bba82f63c3e81dce426ba457fc7905b30ac6e",
"https://git.kernel.org/stable/c/baf92485d111be828e1ab84a995515b604b938e5",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49949.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49949",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49949.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49949",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 490364,
"published_at": "2025-06-18T11:00:13.277+00:00"
}