In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_hid: fix f_hidg lifetime vs cdev
The embedded struct cdev does not have its lifetime correctly tied to the enclosing struct f_hidg, so there is a use-after-free if /dev/hidgN is held open while the gadget is deleted.
This can readily be replicated with libusbgx's example programs (for conciseness - operating directly via configfs is equivalent):
gadget-hid exec 3<> /dev/hidg0 gadget-vid-pid-remove exec 3<&-
Pull the existing device up in to struct f_hidg and make use of the cdev_device_{add,del}() helpers. This changes the lifetime of the device object to match struct f_hidg, but note that it is still added and deleted at the same time.
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Oct 24, 2025 | Oct 24, 2025 |
| Ubuntu | — | Upgrade linux-oracle-5.15Upgrade linux-oracleUpgrade linux-gkeUpgrade linux-fipsUpgrade linux-ibmUpgrade linux-gcp-5.15Upgrade linux-azure-5.15Upgrade linux-hwe-5.4Upgrade linux-azure-fipsUpgrade linux-riscv-5.15Upgrade linux-kvmUpgrade linux-aws-fipsUpgrade linux-nvidiaUpgrade linux-intel-iotgUpgrade linux-gcp-5.4Upgrade linux-azure-5.4Upgrade linux-xilinx-zynqmpUpgrade linux-lowlatencyUpgrade linux-gcp-fipsUpgrade linux-gkeopUpgrade linux-aws-5.4Upgrade linux-intel-iotg-5.15Upgrade linux-raspi-5.4Upgrade linux-oracle-5.4Upgrade linux-awsUpgrade linux-raspiUpgrade linux-azureUpgrade linux-gcpUpgrade linux-intel-iot-realtimeUpgrade linuxUpgrade linux-nvidia-tegra-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-hwe-5.15Upgrade linux-aws-5.15Upgrade linux-iotUpgrade linux-realtimeUpgrade linux-bluefieldUpgrade linux-ibm-5.4 | Oct 28, 2025 | Oct 24, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Oct 22, 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