CVE-2022-49241
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49241 affects the Linux kernel and involves a vulnerability in the ASoC (ALSA System on Chip) Atmel driver. The issue was discovered in the sam9x5wm8731driverprobe function where there was improper handling of devicenode pointer reference counting. Specifically, the devicenode pointer returned by ofparsephandle() had its refcount incremented, but the function only called ofnode_put() in the regular path, causing a reference count leak in the error path (Kernel Git).

Technical details

The vulnerability exists in the error handling path of the sam9x5wm8731driverprobe function. When ofparsephandle() returns a devicenode pointer, it increments the reference count. The original code only decremented this count (via ofnodeput()) in the successful execution path, but failed to do so in error conditions. This resulted in a memory leak due to the reference count not being properly decremented in error scenarios (Kernel Git).

Impact

The vulnerability results in a reference count leak in the Linux kernel's memory management system when error conditions occur in the Atmel ASoC driver. While this may not lead to immediate system compromise, it could potentially cause memory resource exhaustion over time if the error condition is triggered repeatedly (NVD).

Mitigation and workarounds

The issue has been fixed by properly handling the reference counting in all execution paths. The fix involves adding appropriate ofnodeput() calls in the error handling paths to ensure proper cleanup of resources. The patch has been merged into the Linux kernel (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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 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