MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create()
In error case in bridge_platform_create after calling platform_device_add()/platform_device_add_data()/ platform_device_add_resources(), release the failed 'pdev' or it will be leak, call platform_device_put() to fix this problem.
Besides, 'pdev' is divided into 'pdev_wd' and 'pdev_bd', use platform_device_unregister() to release sgi_w1 resources when xtalk-bridge registration fails.
From the CVE record · Linux
The Linux kernel can leak a platform device when bridge_platform_create() fails on MIPS SGI-IP27. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel on MIPS SGI-IP27 should check their affected versions; no version range was provided.