gpio: xilinx: fix runtime PM leak on request error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ff82fc3a4a1d417dee1229681cc5285986edb1fa, Kernel 2fd6ecda5d1f47cffcfadddb35ee49402162c724, Kernel 3c7c764a3e933b4b32a847edeb89c8d1930613f4 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: gpio: xilinx: fix runtime PM leak on request error path pm_runtime_get_sync() leaves the usage counter incremented even when it fails, and xgpio_request() returns the error without dropping it. gpiolib does not call ->free() when ->request() fails, so xgpio_free(), which holds the only matching pm_runtime_put(), never runs. The reference is leaked and the controller can no longer runtime-suspend, so its clock stays enabled. Switch to pm_runtime_resume_and_get(), which only increments the usage counter on success.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=26b04774621ed333e8bc56479feb6e31625df58c <ff82fc3a4a1d417dee1229681cc5285986edb1fa, >=26b04774621ed333e8bc56479feb6e31625df58c <2fd6ecda5d1f47cffcfadddb35ee49402162c724, >=26b04774621ed333e8bc56479feb6e31625df58c <3c7c764a3e933b4b32a847edeb89c8d1930613f4, >=26b04774621ed333e8bc56479feb6e31625df58c <7fa0e73dc31f4e653918fc002d64909c83f4b020, >=26b04774621ed333e8bc56479feb6e31625df58c <a027e0d7765d1531ee39e4dae81951b04f32ba7b, >=26b04774621ed333e8bc56479feb6e31625df58c <b07b3925f676640103b3d74b93fc401b1c873d13, >=26b04774621ed333e8bc56479feb6e31625df58c <f73ee2bd2293f8cc340061c5229395ace71fc2eb, =5.12 | ff82fc3a4a1d417dee1229681cc5285986edb1fa, 2fd6ecda5d1f47cffcfadddb35ee49402162c724, 3c7c764a3e933b4b32a847edeb89c8d1930613f4, 7fa0e73dc31f4e653918fc002d64909c83f4b020, a027e0d7765d1531ee39e4dae81951b04f32ba7b, b07b3925f676640103b3d74b93fc401b1c873d13, f73ee2bd2293f8cc340061c5229395ace71fc2eb |
| linux-kernel: Kernel | >=5.16.0 <6.1.191, >=6.13.0 <6.18.57, >=6.19.0 <7.2.11, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=5.12.0 <5.15.224 | 6.1.191, 6.18.57, 7.2.11, 6.6.160, 6.12.113, 5.15.224 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket