SB2025102334 - Use-after-free in Linux kernel gadget function driver
Published: October 23, 2025 Updated: October 26, 2025
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Use-after-free (CVE-ID: CVE-2022-50568)
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to a use-after-free error within the func_to_hidg(), hidg_bind(), hidg_free(), hidg_unbind() and hidg_alloc() functions in drivers/usb/gadget/function/f_hid.c. A local user can escalate privileges on the system.
Remediation
Install update from vendor's website.
References
- https://git.kernel.org/stable/c/1b6a53e447ec3d81623610c8c7ec5082b47dfdce
- https://git.kernel.org/stable/c/1cd7f156f6389918f760687fbbf133c86da93162
- https://git.kernel.org/stable/c/89ff3dfac604614287ad5aad9370c3f984ea3f4b
- https://git.kernel.org/stable/c/9e08b7f5fa00e9d550851352bd0d1ba74ccffef2
- https://git.kernel.org/stable/c/9e4b85d815b14bd4db2deea2a54264a23de8b896
- https://git.kernel.org/stable/c/c78c87c4e389b62f8892af7f59857447aa6d9797
- https://git.kernel.org/stable/c/d3136b79705c2e3bba9c76adc5628af0215d798e
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.86