Vulnerability in Kernel: media: ir_toy: free before error exiting

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001142: media: ir_toy: free before error exiting. Affects Kernel versions < 93ef3fdf3b6633c58f049e5a6be755777dde4340. 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 is a critical component of the Linux operating system that manages communication between hardware and software. It provides essential functions and services for the system's operation. The media subsystem within the Kernel handles various media-related functionalities, including infrared (IR) communication. The 'ir_toy' module is responsible for IR communication using a specific device. However, a vulnerability has been discovered in the 'ir_toy' module that could lead to potential security risks.

Vulnerability Detail

The vulnerability in the 'ir_toy' module occurs when it attempts to free resources before properly handling an error condition during the exit process. This could result in memory corruption or other unexpected behavior, potentially leading to a security breach. The impact and likelihood of successful exploitation are yet to be proven. It is important to note that this vulnerability has been addressed in the Linux Kernel version v5.17.2 through commit 93ef3fdf3b6633c58f049e5a6be755777dde4340.

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 temporary workaround, if updating the Kernel is not immediately feasible, you can disable the 'ir_toy' module or remove it from the system. This can be achieved by executing the following commands as root:

rmmod ir_toy

Conclusion

In conclusion, the 'ir_toy' module in the Kernel has a vulnerability that could lead to memory corruption or other unexpected behavior. It is crucial to update the Linux Kernel to version v5.17.2 or later to mitigate this vulnerability. If immediate updating is not possible, disabling or removing the 'ir_toy' module can serve as a temporary workaround. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability could potentially lead to memory corruption or other unexpected behavior, which may be exploited by attackers to gain unauthorized access or disrupt system functionality.

Yes, this vulnerability has been fixed in the Linux Kernel version v5.17.2 through commit 93ef3fdf3b6633c58f049e5a6be755777dde4340.

To update the Linux Kernel, you should follow the official update process provided by the Linux distribution you are using. This typically involves using package management tools or manually compiling and installing the updated Kernel version.

Yes, as a temporary workaround, you can disable the 'ir_toy' module or remove it from the system. This can be achieved by executing the following commands as root:

rmmod ir_toy

You can find more information about this vulnerability in the official Linux Kernel documentation, security advisories, or by referring to the provided references link in the vulnerability details.

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