CVE-2021-46933
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-46933 is a vulnerability in the Linux kernel's USB gadget subsystem, specifically in the Function File System (f_fs) component. The issue occurs when ffs_data_clear is indirectly called from both ffs_fs_kill_sb and ffs_ep0_release functions, resulting in multiple calls when userland closes ep0 and then unmounts f_fs. This vulnerability was discovered in February 2024 and affects Linux kernel versions from 4.0.0 up to versions before 5.15.13 (NVD).

Technical details

The vulnerability is caused by a use-after-free condition in the USB gadget f_fs subsystem. When userland provides an eventfd along with function's USB descriptors, it results in multiple calls to eventfd_ctx_put, causing a refcount underflow. The issue manifests when ffs_data_clear is called multiple times, with the function being called up to three times in certain sequences. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability can lead to a denial of service condition through system crashes. When exploited, it causes a refcount underflow and use-after-free situation, which can result in system instability. The impact is primarily focused on system availability, with no direct impact on confidentiality or integrity (NVD).

Mitigation and workarounds

The vulnerability has been fixed by modifying the ffs_data_clear function to properly handle the eventfd cleanup. The fix includes NULL-ifying ffs_eventfd after calling eventfd_ctx_put to prevent extraneous calls, and setting epfiles to NULL after deallocation. The patch has been applied to multiple kernel versions (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-nvidia-6.14
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • linux-oracle-6.14
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug-devel
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management