Refcount Leak in Linux Kernel: Fix for aspeed_adc_set_trim_data

linux Updated 02 Oct 2025

Summary

26/02/2025
N/A
Yes i
Medium
5.5

CVE-2022-49684: In the Linux kernel, the following vulnerability has been resolved: iio: adc: aspeed: Fix refcount leak in aspeed_adc_set_trim_data of_find_node_by_name() returns a node pointer with refcount incremented, we should use o... Affects linux versions < 5.18.14-1. Fixed in 5.18.14-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. It is known for its stability, performance, and security features. The kernel is modular, allowing for the addition of various drivers and subsystems, including the IIO (Industrial I/O) subsystem, which handles data from sensors and other input devices. The vulnerability in question affects the aspeed_adc driver within the IIO subsystem, which is responsible for interfacing with analog-to-digital converters on Aspeed systems.

Vulnerability Detail

The vulnerability, identified as CVE-2022-49684, arises from a refcount leak in the aspeed_adc_set_trim_data function. The issue occurs when the function calls of_find_node_by_name(), which returns a node pointer with an incremented reference count. If the reference count is not decremented using of_node_put() after the node is no longer needed, it leads to a memory leak. This leak can potentially exhaust system resources, leading to degraded performance or system instability. The vulnerability was introduced in earlier versions of the Linux kernel and has been addressed in the patched version.

How To Fix

Minimum fixed version

5.18.14-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The recommended action is to apply the patch by updating to the fixed version of the Linux kernel.

Conclusion

CVE-2022-49684 is a critical vulnerability in the Linux kernel that affects the aspeed_adc driver due to a refcount leak. Users are strongly encouraged to update to the patched version to mitigate potential risks. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in your software.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49684 is a vulnerability in the Linux kernel related to a refcount leak in the aspeed_adc driver, which can lead to memory leaks and potential system instability.

You can check if your system is affected by using tools like Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

The consequences include potential memory leaks that can exhaust system resources, leading to degraded performance or system crashes.

Yes, a patch is available in the form of the Linux kernel version 5.18.14-1 or later, which resolves the refcount leak issue.

While there are no specific workarounds, it is advisable to monitor your system for unusual behavior and plan to update your kernel as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.18.14-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback