CVE-2022-49712Published Feb 26, 2025 · Feb 26Updated Oct 28
usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 24a28e4283510dcd58890379a42b8a7d3201d9d3 · < 46da1e4a8b6329479433b2a4056941dfdd7f3efd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe
of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. of_node_put() will check NULL pointer.
From the CVE record · Linux
The Linux kernel's lpc32xx_udc_probe function fails to release a device-tree node reference, causing a reference-count leak. The input does not specify an attacker action, access requirements, or user interaction.
Engineers running Linux kernels that include the lpc32xx_udc driver should check their systems; affected versions are not specified.