Vulnerability in Kernel: iio: dummy: iio_simple_dummy: check the return value of kstrdup()

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003217: iio: dummy: iio_simple_dummy: check the return value of kstrdup(). Affects Kernel versions < 9f9ed31de4dd25cf11843d05388b12a49d7ca864. No fix is published. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a critical component of the Linux operating system that manages communication between hardware and software. It provides essential functions and services to enable the system to operate efficiently. The iio_simple_dummy module is part of the Industrial I/O (IIO) subsystem, which handles data from sensors and other devices. This module is responsible for creating a dummy IIO device for testing purposes. However, a vulnerability has been discovered in the iio_simple_dummy module that could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the iio_simple_dummy module arises from a failure to properly check the return value of the kstrdup() function. This function is used to allocate and copy a string, but if the allocation fails, it returns NULL. Without checking the return value, subsequent operations on the string can lead to memory corruption or other unexpected behavior. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. It is important to note that the impact and attack plausibility have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to apply the fix by updating the Kernel to the latest version.

Conclusion

In conclusion, a vulnerability has been discovered in the iio_simple_dummy module of the Kernel, which could potentially lead to security issues. It is crucial to update the Kernel to version v5.15.47 or later to apply the necessary fix. Failure to do so may result in memory corruption, arbitrary code execution, or denial-of-service attacks. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and the tool will provide real-time alerts for open-source vulnerabilities.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the fix as soon as possible to mitigate any potential risks.

The exact attack vector and exploitability of this vulnerability have not been proven yet. However, it is always recommended to apply security patches and updates to minimize the risk of remote exploitation.

The specific prerequisites for exploiting this vulnerability have not been identified. However, it is important to keep the system up to date with the latest security patches to minimize the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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