Vulnerability in Kernel: usb: gadget: f_fs: Clear ffs_eventfd in ffs_data_clear

Kernel Updated 02 Oct 2025

Summary

10/01/2022
N/A
No i
Unrated
Not published

GSD-2022-1000041: usb: gadget: f_fs: Clear ffs_eventfd in ffs_data_clear. Affects Kernel versions >= 5e33f6fdf735cda1d4580fe6f1878da05718fe73, < 1c4ace3e6b8575745c50dca9e76e0021e697d645. 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 manages communication between hardware and software. It provides essential functions and services to enable the proper functioning of the system. The usb gadget subsystem within the Kernel allows devices to act as USB peripherals. The f_fs module is responsible for implementing the FunctionFS gadget driver, which enables the creation of custom USB functions. This vulnerability specifically affects the f_fs module in the Kernel.

Vulnerability Detail

The vulnerability in the f_fs module of the Kernel arises from a failure to clear the ffs_eventfd in the ffs_data_clear function. This oversight can potentially lead to security issues, although the exact impact and likelihood of exploitation have not been proven. Attackers may be able to manipulate the ffs_eventfd to execute arbitrary code or perform unauthorized actions. The vulnerability was introduced in version v4.0 of the Kernel and has been fixed in version v5.10.90.

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 the f_fs module if it is not required for their system. This can be done by modifying the Kernel configuration and rebuilding it without including the f_fs module. However, this workaround may not be feasible for systems that rely on the functionality provided by the f_fs module.

Conclusion

In conclusion, the vulnerability in the f_fs module of the Kernel can potentially lead to security issues if exploited. It is recommended to update the Kernel to version v5.10.90 or later to mitigate this vulnerability. Alternatively, users can disable the f_fs module if it is not required. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system that manages communication between hardware and software.

The usb gadget subsystem within the Kernel allows devices to act as USB peripherals.

The f_fs module is responsible for implementing the FunctionFS gadget driver, which enables the creation of custom USB functions.

The ffs_eventfd is a data structure used by the f_fs module to handle events related to FunctionFS gadget functionality.

You can use Vulert's 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 for any open-source vulnerabilities, including this one.

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