In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]firmware_loader: Fix use-after-free during unregister[EOL][EOL]In the following code within firmware_upload_unregister(), the call to[EOL]device_unregister() could result in the dev_release function freeing the[EOL]fw_upload_priv structure before it is dereferenced for the call to[EOL]module_put(). This bug was found by the kernel test robot using[EOL]CONFIG_KASAN while running the firmware selftests.[EOL][EOL] device_unregister(&fw_sysfs->dev);[EOL] module_put(fw_upload_priv->module);[EOL][EOL]The problem is fixed by copying fw_upload_priv->module to a local variable[EOL]for use when calling device_unregister(). CREATE(Triage):(User=lchen-cn) [CVE-2022-49951 (https://nvd.nist.gov/vuln/detail/CVE-2022-49951)