
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 dmisysfsregisterhandle function where kobjectinitandadd() takes a reference even when it fails. According to the documentation of kobjectinitandadd(), if this function returns an error, kobjectput() 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 dmisysfsregisterhandle function. When kobjectinitandadd() 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 dmisysfsregister_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 kobjectput(&entry->kobj) in the error handling path of dmisysfsregisterhandle. 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."