{"id":"CVE-2022-49949","state":"PUBLISHED","title":"firmware_loader: Fix memory leak in firmware upload","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware_loader: Fix memory leak in firmware upload\n\nIn the case of firmware-upload, an instance of struct fw_upload is\nallocated in firmware_upload_register(). This data needs to be freed\nin fw_dev_release(). Create a new fw_upload_free() function in\nsysfs_upload.c to handle the firmware-upload specific memory frees\nand incorporate the missing kfree call for the fw_upload structure.","publishedAt":"2025-06-18T11:00:13.277Z","updatedAt":"2026-05-11T19:09:47.562Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"97730bbb242cde22b7140acd202ffd88823886c9","status":"affected","lessThan":"baf92485d111be828e1ab84a995515b604b938e5","versionType":"git"},{"version":"97730bbb242cde22b7140acd202ffd88823886c9","status":"affected","lessThan":"789bba82f63c3e81dce426ba457fc7905b30ac6e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/base/firmware_loader/sysfs.c","drivers/base/firmware_loader/sysfs.h","drivers/base/firmware_loader/sysfs_upload.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"5.19.8","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/base/firmware_loader/sysfs.c","drivers/base/firmware_loader/sysfs.h","drivers/base/firmware_loader/sysfs_upload.c"]}],"references":["https://git.kernel.org/stable/c/baf92485d111be828e1ab84a995515b604b938e5","https://git.kernel.org/stable/c/789bba82f63c3e81dce426ba457fc7905b30ac6e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49949.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49949","state":"PUBLISHED","datePublished":"2025-06-18T11:00:13.277Z","dateUpdated":"2026-05-11T19:09:47.562Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.382Z"},"containers":{"cna":{"title":"firmware_loader: Fix memory leak in firmware upload","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware_loader: Fix memory leak in firmware upload\n\nIn the case of firmware-upload, an instance of struct fw_upload is\nallocated in firmware_upload_register(). This data needs to be freed\nin fw_dev_release(). Create a new fw_upload_free() function in\nsysfs_upload.c to handle the firmware-upload specific memory frees\nand incorporate the missing kfree call for the fw_upload structure."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"97730bbb242cde22b7140acd202ffd88823886c9","status":"affected","lessThan":"baf92485d111be828e1ab84a995515b604b938e5","versionType":"git"},{"version":"97730bbb242cde22b7140acd202ffd88823886c9","status":"affected","lessThan":"789bba82f63c3e81dce426ba457fc7905b30ac6e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/base/firmware_loader/sysfs.c","drivers/base/firmware_loader/sysfs.h","drivers/base/firmware_loader/sysfs_upload.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"5.19.8","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/base/firmware_loader/sysfs.c","drivers/base/firmware_loader/sysfs.h","drivers/base/firmware_loader/sysfs_upload.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/baf92485d111be828e1ab84a995515b604b938e5"},{"url":"https://git.kernel.org/stable/c/789bba82f63c3e81dce426ba457fc7905b30ac6e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:09:47.562Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"5.19.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}