usb: gadget: fix null pointer dereference in usb_put_function_instance()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d3a7fa61997db3bf6dadef4c1bd87a4fa782a817, Kernel 0fc54a00954f9f4c3e3d4ffa64a530685d99a39b, Kernel 3a9691fff79bcce95338435599df6d3ae433cfdc and 12 more.
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: fix null pointer dereference in usb_put_function_instance() usb_put_function_instance() attempts to dereference fd inside fi struct to get mod in uvc_alloc_inst() error path. However, fd is not allocated until later in try_get_usb_function_instance() after allocating fi in uvc_alloc_inst() and thus guranteed to be null in error path. Fix this by adding a null check for fi->fd that returns if fd is null.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <d3a7fa61997db3bf6dadef4c1bd87a4fa782a817, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <0fc54a00954f9f4c3e3d4ffa64a530685d99a39b, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <3a9691fff79bcce95338435599df6d3ae433cfdc, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <5117f236e9e30744338b425395d55913c4500897, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <6e6736c049683380f5e20becde498986e9293ca4, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <6e74ac5c596fd246e37eadfc354567179ccbe9aa, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <6ea3a073ca97716d4a73df49a3bec1c3ccf8e2a0, >=0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 <7a4f4ca7ff32ae24807c83e2a06d62b13378d53c, =3.9 | d3a7fa61997db3bf6dadef4c1bd87a4fa782a817, 0fc54a00954f9f4c3e3d4ffa64a530685d99a39b, 3a9691fff79bcce95338435599df6d3ae433cfdc, 5117f236e9e30744338b425395d55913c4500897, 6e6736c049683380f5e20becde498986e9293ca4, 6e74ac5c596fd246e37eadfc354567179ccbe9aa, 6ea3a073ca97716d4a73df49a3bec1c3ccf8e2a0, 7a4f4ca7ff32ae24807c83e2a06d62b13378d53c |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.51, >=6.19.0 <7.2.5, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=3.9.0 <5.10.270 | 5.15.221, 6.1.188, 6.18.51, 7.2.5, 6.6.157, 6.12.110, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket