
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-49370 affects the Linux kernel's firmware subsystem, specifically in the dmi-sysfs component. The vulnerability was discovered in the dmi_sysfs_register_handle function where kobject_init_and_add() takes a reference even when it fails. According to the documentation of kobject_init_and_add(), if this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object (Kernel Git).
The vulnerability is a memory leak that occurs in the dmi_sysfs_register_handle function. When kobject_init_and_add() fails, the code was using kfree(entry) instead of the required kobject_put(&entry->kobj) to clean up the memory, leading to a memory leak. This issue was introduced by commit 948af1f0bbc8 'firmware: Basic dmi-sysfs support' (Kernel Git).
The vulnerability results in a memory leak when the dmi_sysfs_register_handle function encounters an error condition. This can lead to gradual memory consumption over time, potentially affecting system stability and performance (NVD).
The issue has been fixed by replacing kfree(entry) with kobject_put(&entry->kobj) in the error handling path of dmi_sysfs_register_handle. The fix ensures proper cleanup of memory associated with the kobject when initialization fails (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."