net: mana: Guard mana_remove against double invocation
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f63a6d2e4167703611f5c2602eaa1a23f635430f, Kernel 7.0.10, Kernel 793bf1f4e469c51d0e39199823da5e1de85a2741 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: net: mana: Guard mana_remove against double invocation If PM resume fails (e.g., mana_attach() returns an error), mana_probe() calls mana_remove(), which tears down the device and sets gd->gdma_context = NULL and gd->driver_data = NULL. However, a failed resume callback does not automatically unbind the driver. When the device is eventually unbound, mana_remove() is invoked a second time. Without a NULL check, it dereferences gc->dev with gc == NULL, causing a kernel panic. Add an early return if gdma_context or driver_data is NULL so the second invocation is harmless. Move the dev = gc->dev assignment after the guard so it cannot dereference NULL.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=635096a86edb067d55a1e04b4a918f5c6dac0c51 <f63a6d2e4167703611f5c2602eaa1a23f635430f, >=6.19 <7.0.10, >=635096a86edb067d55a1e04b4a918f5c6dac0c51 <793bf1f4e469c51d0e39199823da5e1de85a2741, >=635096a86edb067d55a1e04b4a918f5c6dac0c51 <8ee85b75a72216c857c39457f6595709c4c9f856, >=635096a86edb067d55a1e04b4a918f5c6dac0c51 <a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6, >=635096a86edb067d55a1e04b4a918f5c6dac0c51 <bbe5c3c570645a4ceb120979d3ee203a1583d775, >=5.16 <6.18.33, =5.16, >=635096a86edb067d55a1e04b4a918f5c6dac0c51 <50271d7ec95144d26808025b508f463780517d3c | f63a6d2e4167703611f5c2602eaa1a23f635430f, 7.0.10, 793bf1f4e469c51d0e39199823da5e1de85a2741, 8ee85b75a72216c857c39457f6595709c4c9f856, a1ddfd2c0b7a48e5239fadd2a24cc4bc2cda90e6, bbe5c3c570645a4ceb120979d3ee203a1583d775, 6.18.33, 50271d7ec95144d26808025b508f463780517d3c |
| linux-kernel: Kernel | >=5.16.0 <6.1.191, >=6.13.0 <6.18.33, >=6.19.0 <7.0.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.114 | 6.1.191, 6.18.33, 7.0.10, 6.6.160, 6.12.114 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket