usb: gadget: f_subset: Fix unbalanced refcnt in geth_free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 02832e56f88a981474ee4c7c141f46fc1b4454f4 · < 3d436670b47415da042452618fb5d8e317ab095f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_subset: Fix unbalanced refcnt in geth_free
geth_alloc() increments the reference count, but geth_free() fails to decrement it. This prevents the configuration of attributes via configfs after unlinking the function.
Decrement the reference count in geth_free() to ensure proper cleanup.
From the CVE record · Linux
The Linux kernel USB gadget f_subset function fails to decrement a reference count when it is freed. After the function is unlinked, this prevents attribute configuration through configfs. The input does not specify an attacker path or authentication or user-interaction requirements.
Engineers running the Linux kernel who use the USB gadget f_subset function should check their systems; affected versions are not specified.