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-1001462: media: ir_toy: free before error exiting. Affects Kernel versions < 382e0f6958ef34eb093127b6d74c12f3b8fd0904. 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 and services to ensure 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, such as remote controls. However, a vulnerability has been discovered in the ir_toy module that could potentially be exploited by attackers.

Vulnerability Detail

The vulnerability in the ir_toy module arises from a memory management issue. Specifically, there is a scenario where memory is freed before properly handling an error condition, leading to a use-after-free vulnerability. An attacker could potentially trigger this vulnerability by sending specially crafted input to the ir_toy module, causing it to free memory prematurely. If successfully exploited, this vulnerability could result in a variety of consequences, including system crashes, privilege escalation, or arbitrary code execution. It is important to note that 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 disable or remove the ir_toy module from their Kernel configuration if it is not required for their system's functionality. This can be achieved by modifying the Kernel configuration file and rebuilding the Kernel without including the ir_toy module. However, it is recommended to apply the official fix by updating the Kernel to a version that includes the fix.

Conclusion

In conclusion, a vulnerability has been identified in the ir_toy module of the Kernel, which could potentially be exploited by attackers. The vulnerability has been fixed in the Linux Kernel version v5.16.19 through commit 382e0f6958ef34eb093127b6d74c12f3b8fd0904. Users are advised to update their Kernel to this version or a later one that includes the fix. Alternatively, users can disable or remove the ir_toy module from their Kernel configuration as a temporary workaround. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary and depends on the attacker's capabilities and intentions. Possible consequences include system crashes, privilege escalation, or arbitrary code execution.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

Yes, a patch has been released in the Linux Kernel version v5.16.19. Users should update their Kernel to this version or a later one that includes the fix.

As a temporary workaround, you can disable or remove the ir_toy module from your Kernel configuration if it is not required for your system's functionality. However, it is recommended to apply the official fix by updating the Kernel to a version that includes the fix.

You can refer to the vulnerability details in the Open Source Vulnerability format provided by the Cloud Security Alliance's GSD database. The details include the vulnerability ID, affected package, fix version, and references for further information.

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