CVE-2022-49370
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-rt-64k
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-modules-extra
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-devel-matched
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-partner
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management