{"id":"CVE-2022-49951","published":"2025-06-18T11:00:14Z","modified":"2026-05-11T19:09:49Z","title":"firmware_loader: Fix use-after-free during unregister","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware_loader: Fix use-after-free during unregister\n\nIn the following code within firmware_upload_unregister(), the call to\ndevice_unregister() could result in the dev_release function freeing the\nfw_upload_priv structure before it is dereferenced for the call to\nmodule_put(). This bug was found by the kernel test robot using\nCONFIG_KASAN while running the firmware selftests.\n\n  device_unregister(&fw_sysfs->dev);\n  module_put(fw_upload_priv->module);\n\nThe problem is fixed by copying fw_upload_priv->module to a local variable\nfor use when calling device_unregister().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00273,"percentile":0.12464,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/d380d40930a674c520a5b55f3be1eb17dc634ebc","tags":[]},{"url":"https://git.kernel.org/stable/c/8b40c38e37492b5bdf8e95b46b5cca9517a9957a","tags":[]}],"priority":{"score":2.5,"factors":[{"name":"EPSS percentile","points":2.49}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 97730bbb242cde22b7140acd202ffd88823886c9, < d380d40930a674c520a5b55f3be1eb17dc634ebc",">= 97730bbb242cde22b7140acd202ffd88823886c9, < 8b40c38e37492b5bdf8e95b46b5cca9517a9957a"]},{"vendor":"Linux","product":"Linux","versions":["5.19"]}],"euvd":{"id":"EUVD-2022-55233","exploited":false,"provenance":"source"}}