Linux Kernel FunctionFS Bind Race Condition Vulnerability Leading to Kernel Panic

Vulnerability

A race condition vulnerability has been identified in the Linux kernel's USB gadget functionality, specifically within the functionfs_bind process. This vulnerability can cause a kernel panic when the 'panic_on_warn' option is enabled. The issue arises from the improper use of WARN_ON in functionfs_bind, creating a race condition between ADB (Android Debug Bridge) operations and UDC (USB Device Controller) writes via configfs. The vulnerability has been addressed by removing the unnecessary WARN_ON, preventing the kernel panic scenario.

Impact

Exploitation of this vulnerability can lead to a kernel panic, causing a system crash and disruption of services.

Reproduction

The vulnerability can be reproduced by enabling the 'panic_on_warn' option in the Linux kernel. Once this is set, initiate an ADB operation while simultaneously performing a UDC write through configfs. The race condition will trigger a WARN_ON in functionfs_bind, leading to a kernel panic.

Remediation

No specific remediation is mentioned, but users can consider updating to a patched version of the Linux kernel where this vulnerability has been addressed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.