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-1003677: iio: dummy: iio_simple_dummy: check the return value of kstrdup(). Affects Kernel versions < ab75e02366e14dedeac20fd149cd8be4e2e56266. 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 critical component of the Linux operating system that provides essential services and functionality to the system. It acts as a bridge between the hardware and software layers, enabling communication and control of various hardware devices. 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 measurement devices. This module is responsible for emulating a dummy IIO device for testing and development purposes.

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 in kernel space. If the allocation fails, the function returns NULL. However, the code in the iio_simple_dummy module does not check the return value of kstrdup(), assuming that the allocation always succeeds. This can lead to a NULL pointer dereference when accessing the copied string, resulting in a kernel crash or potential privilege escalation.

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.

Conclusion

In conclusion, the iio_simple_dummy module in the Kernel is vulnerable to a NULL pointer dereference due to the lack of proper return value checking in the kstrdup() function. This vulnerability can potentially lead to a kernel crash or privilege escalation. It is recommended to update the Kernel to version v5.4.198 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can potentially lead to a kernel crash or privilege escalation, which could allow an attacker to gain unauthorized access to the system or execute arbitrary code with elevated privileges.

The exploitability of this vulnerability depends on various factors, such as the system configuration and the presence of other security measures. However, in general, remote exploitation is less likely as it would require the attacker to have a certain level of access to the system.

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

The recommended approach to mitigate this vulnerability is to update the Kernel to the fixed version. However, if updating is not feasible, alternative measures such as implementing additional security controls and monitoring can help reduce the risk.

For more information about this vulnerability, you can refer to the source link provided in the Open Source Vulnerability database entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003677.json

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