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-1001784: media: ir_toy: free before error exiting. Affects Kernel versions < 2011363c196846c083649c91ed30aeef64358d52. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionalities for the proper functioning of the system. One of the features supported by the Kernel is media, which includes various media devices and drivers. The ir_toy module is a part of the media subsystem and is responsible for handling infrared (IR) communication. It allows users to interact with IR devices through the system. However, a vulnerability has been discovered in the ir_toy module that could potentially lead to security issues.

Vulnerability Detail

The vulnerability in the ir_toy module arises from a memory management flaw. Specifically, the module attempts to free a resource before properly handling an error condition, which can result in a use-after-free vulnerability. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. The impact and attack plausibility of this vulnerability have not been proven yet. It is important to note that this vulnerability has been addressed in the Linux Kernel version v5.15.33 through commit 2011363c196846c083649c91ed30aeef64358d52.

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 disable or unload the ir_toy module if it is not required for their system's functionality. This can be achieved by executing the following command as root or with sudo privileges:

modprobe -r ir_toy

This will unload the module from the Kernel, preventing its execution and potential exploitation of the vulnerability.

Conclusion

In conclusion, a vulnerability has been discovered in the ir_toy module of the Kernel's media subsystem. This vulnerability could potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.15.33 or later to mitigate this vulnerability. Alternatively, users can disable or unload the ir_toy module if it is not required for their system's functionality. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven. However, if successfully exploited, an attacker could execute arbitrary code or cause a denial-of-service condition.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it in real-time to identify any open-source vulnerabilities, including this one.

Yes, a patch for this vulnerability is available in the Linux Kernel version v5.15.33. It is recommended to update to this version or a later one to mitigate the vulnerability.

Yes, as a temporary workaround, you can disable or unload the ir_toy module if it is not required for your system's functionality. This can help mitigate the risk of exploitation.

You can find more information about this vulnerability, including the fix commit and its impact, in the vulnerability database maintained by the Cloud Security Alliance. The specific entry for this vulnerability can be accessed at: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001784.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