In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
While performing fast composition switch, there is a possibility that the process of ffs_ep0_write/ffs_ep0_read get into a race condition due to ep0req being freed up from functionfs_unbind.
Consider the scenario that the ffs_ep0_write calls the ffs_ep0_queue_wait by taking a lock &ffs->ev.waitq.lock. However, the functionfs_unbind isn't bounded so it can go ahead and mark the ep0req to NULL, and since there is no NULL check in ffs_ep0_queue_wait we will end up in use-after-free.
Fix this by making a serialized execution between the two functions using a mutex_lock(ffs->mutex).
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Mar 31, 2025 | Mar 27, 2025 |
| Ubuntu | — | Upgrade linux-ibm-5.4Upgrade linux-aws-5.15Upgrade linux-hwe-5.15Upgrade linux-raspi-5.4Upgrade linux-hweUpgrade linux-bluefieldUpgrade linux-azure-5.4Upgrade linuxUpgrade linux-gcp-4.15Upgrade linux-gcp-fipsUpgrade linux-awsUpgrade linux-azure-4.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-iotUpgrade linux-azureUpgrade linux-nvidia-tegra-5.15Upgrade linux-oracle-5.15Upgrade linux-oracleUpgrade linux-kvmUpgrade linux-ibmUpgrade linux-gcpUpgrade linux-lowlatencyUpgrade linux-intel-iotg-5.15Upgrade linux-gcp-5.4Upgrade linux-aws-5.4Upgrade linux-azure-fipsUpgrade linux-gkeUpgrade linux-riscv-5.15Upgrade linux-gkeopUpgrade linux-raspiUpgrade linux-aws-fipsUpgrade linux-azure-5.15Upgrade linux-intel-iot-realtimeUpgrade linux-fipsUpgrade linux-nvidiaUpgrade linux-gcp-5.15Upgrade linux-realtimeUpgrade linux-aws-hweUpgrade linux-oracle-5.4Upgrade linux-xilinx-zynqmpUpgrade linux-hwe-5.4Upgrade linux-intel-iotg | Apr 1, 2025 | Mar 27, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Mar 27, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub