net: ibm: emac: mal: fix potential system hang in mal_remove()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 34c4cae51718d6f393415e01c61314c1bde02f2e, Kernel 62126e73e230cf4bd6c27cf201949c4290af84a1, Kernel 7c5d41f87f079990bf241359e3c1332d8d10fe87 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: net: ibm: emac: mal: fix potential system hang in mal_remove() napi_disable() is not idempotent and calling it on an already-disabled or unenabled NAPI context will cause the kernel to spin indefinitely waiting for the NAPI_STATE_SCHED bit to clear. In mal_remove(), napi_disable() is called unconditionally. If no MACs were registered, NAPI was never enabled. Also, if they were registered but subsequently unregistered, NAPI was already disabled in mal_unregister_commac(). In either case, calling napi_disable() causes the kernel to hang upon module removal. Fix this by only calling napi_disable() in mal_remove() if the commac list is not empty (which implies NAPI is enabled).
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =2.6.24, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <34c4cae51718d6f393415e01c61314c1bde02f2e, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <62126e73e230cf4bd6c27cf201949c4290af84a1, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <7c5d41f87f079990bf241359e3c1332d8d10fe87, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <9c1c814a662d9c81959eba591bb52b24639390f2, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <c4cb9a728df66c46067b26263f5beb633aae4087, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <f0399b3e212741bc5a64b8399d6266c4a150bdfe, >=b3e441c6ed8655a42e7b4da1b6dc7939f259d9c9 <f6c1aad9b35fa083f48ce0c5926204891d82e089 | 34c4cae51718d6f393415e01c61314c1bde02f2e, 62126e73e230cf4bd6c27cf201949c4290af84a1, 7c5d41f87f079990bf241359e3c1332d8d10fe87, 9c1c814a662d9c81959eba591bb52b24639390f2, c4cb9a728df66c46067b26263f5beb633aae4087, f0399b3e212741bc5a64b8399d6266c4a150bdfe, f6c1aad9b35fa083f48ce0c5926204891d82e089 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket