Vulnerability in Kernel package: 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-1003946: iio: dummy: iio_simple_dummy: check the return value of kstrdup(). Affects Kernel versions < 273428016292967bebb3c3ee45183e26e3a903fc. 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 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 Kernel package is a crucial component of the Linux operating system. It provides the core functionality and interfaces for various hardware devices and system resources. The iio_simple_dummy module within the Kernel package is responsible for simulating an Industrial I/O (IIO) device for testing and development purposes. It allows users to create virtual IIO devices and perform operations on them. However, a vulnerability has been identified in the iio_simple_dummy module, which 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 duplicate a string in kernel space. If the kstrdup() function fails to allocate memory for the duplicated string, it returns NULL. However, the iio_simple_dummy module does not check this return value, leading to potential memory allocation failures and subsequent issues. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) condition or execute arbitrary code with kernel privileges. The impact and attack plausibility of this vulnerability 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

As a workaround, users can avoid using the iio_simple_dummy module or disable it if not required for their system. Disabling the module can be achieved by removing or blacklisting the corresponding kernel module file. However, this workaround may impact the functionality of certain applications or features dependent on the iio_simple_dummy module.

Conclusion

In conclusion, a vulnerability has been identified in the iio_simple_dummy module of the Kernel package. This vulnerability can potentially lead to a denial-of-service condition or arbitrary code execution with kernel privileges. It is recommended to update the Kernel package to version v4.14.283 or later to fix this vulnerability. Alternatively, users can avoid using or disable the iio_simple_dummy module if not required. 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 range from a denial-of-service (DoS) condition to potential execution of arbitrary code with kernel privileges. However, the actual impact and attack plausibility have not been proven yet.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation. Simply upload your package-lock.json manifest file to the Vulert Playground to check for vulnerability status.

Yes, a patch for this vulnerability is available in the Linux Kernel version v4.14.283. Updating to this version or a later one will fix the vulnerability.

While updating the Kernel package is the recommended solution, you can mitigate the risk by avoiding the use of the iio_simple_dummy module or disabling it if not required. However, this may impact certain applications or features dependent on the module.

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