
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."