CVE-2022-49403
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49403 is a memory leak vulnerability in the Linux kernel's lib/string_helpers component, specifically in the devm_kasprintf_strarray() function. The vulnerability was discovered when allocated strarray was not being properly added to the device's resource list, causing memory to leak when the device disappears (Kernel Commit).

Technical details

The vulnerability stems from a missing implementation in the devm_kasprintf_strarray() function where the allocated strarray was not being added to the device's resource list. This oversight prevented the automatic release of strarray when the device disappears, resulting in memory leaks in drivers that use devm_kasprintf_strarray(). The fix involves adding the allocated strarray to the device's resource list by setting ptr->n = n and calling devres_add(dev, ptr) (Kernel Commit).

Impact

The vulnerability affects drivers that use the devm_kasprintf_strarray() function, causing memory leaks when devices are removed or disappear from the system. This could potentially lead to system resource exhaustion over time (Kernel Commit).

Mitigation and workarounds

The issue has been fixed by adding proper resource management code to the devm_kasprintf_strarray() function. The fix ensures that the allocated strarray is properly added to the device's resource list, allowing for automatic cleanup when the device is removed. Users should update to a patched version of the Linux kernel that includes the fix (Kernel Commit).

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-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-cross-headers
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-modules-core
NoYesJan 14, 2026

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