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-1004035: iio: dummy: iio_simple_dummy: check the return value of kstrdup(). Affects Kernel versions < c8a27ebd19932fe4ad732e6437f86d4101922098. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a fundamental component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionality for the proper functioning of the system. The iio_simple_dummy module is a part of the Industrial I/O (IIO) subsystem in the Kernel, which provides support for various sensors and data acquisition devices. This module is used to create a dummy IIO device for testing and development purposes.

Vulnerability Detail

The vulnerability in the iio_simple_dummy module arises from a failure to check the return value of the kstrdup() function. This function is used to allocate and copy a string in kernel space. If the allocation fails, the function returns NULL. By not checking the return value, the module may proceed with using the NULL pointer, leading to potential crashes or other undefined behavior. An attacker could potentially exploit this vulnerability to cause a denial-of-service condition or execute arbitrary code with kernel privileges.

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 to the patched version of the Linux Kernel.

Conclusion

The vulnerability in the iio_simple_dummy module of the Kernel could potentially lead to crashes or arbitrary code execution. It is crucial to update to the patched version of the Linux Kernel (v4.9.318 or later) to mitigate this vulnerability. No specific workaround is mentioned, and it is recommended to apply the fix as soon as possible. For additional support and information, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability could potentially lead to crashes or other undefined behavior in the affected system. An attacker may also be able to exploit this vulnerability to execute arbitrary code with kernel privileges.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the tool will analyze it for potential vulnerabilities.

There are no known instances of this vulnerability being exploited in the wild. However, it is always recommended to apply security patches and updates to mitigate potential risks.

For more details about this vulnerability, you can refer to the source link provided in the database_specific section of the vulnerability details.

For further support and assistance in fixing this vulnerability, you can reach out to info@devnack.com.

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