usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0d45a1373e669880b8beaecc8765f44cb0241e47 · < dd9b7c89a80428cc5f4ae0d2e1311fdedb2a1aac| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()
Smatch reports: drivers/usb/phy/phy-tahvo.c: tahvo_usb_probe() warn: missing unwind goto?
After geting irq, if ret < 0, it will return without error handling to free memory. Just add error handling to fix this problem.
From the CVE record · Linux
The Linux kernel’s Tahvo USB PHY probe can leak memory when obtaining an IRQ fails because the error path returns without freeing allocated memory. The input does not specify how an attacker could trigger this condition or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels that include the Tahvo USB PHY driver should check their versions; affected versions are not specified.