Linux · Linux Kernel · CVE-2022-25258
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions prior to 5.16.10
**Description**
The issue is related to the USB Gadget subsystem in the Linux kernel, which lacks certain validation of interface OS descriptor requests. This can lead to memory corruption. The vulnerability is associated with a missing bounds check in the `composite setup` function of `composite.c`, allowing for a possible out of bounds write. This could lead to local escalation of privilege when connecting a malicious USB device, with no additional execution privileges needed. User interaction is not required for exploitation.
**Recommendations**
For Linux kernel versions prior to 5.16.10, update to version 5.16.10 or later to resolve the issue. As a temporary workaround, consider restricting the use of USB devices to minimize the risk of exploitation.