CVE-2025-71182
Description
In the Linux kernel, the following vulnerability has been resolved: can: j1939: make j1939_session_activate() fail if device is no longer registered syzbot is still reporting unregister_netdevice: waiting for vcan0 to become free. Usage count = 2 even after commit 93a27b5891b8 ("can: j1939: add missing calls in NETDEV_UNREGISTER notification handler") was added. A debug printk() patch found that j1939_session_activate() can succeed even after j1939_cancel_active_session() from j1939_netdev_notify(NETDEV_UNREGISTER) has completed. Since j1939_cancel_active_session() is processed with the session list lock held, checking ndev->reg_state in j1939_session_activate() with the session list lock held can reliably close the race window.
How to fix
- linux linux_kernel5.10.248, 5.15.198, 6.1.161, 6.6.121, 6.12.66, 6.18.6 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| linux linux_kernel | 5.4.1 ≤ v < 5.10.248, 5.11 ≤ v < 5.15.198, 5.16 ≤ v < 6.1.161, 6.2 ≤ v < 6.6.121, 6.7 ≤ v < 6.12.66, 6.13 ≤ v < 6.18.6, 5.4, 6.19 | 5.10.248, 5.15.198, 6.1.161, 6.6.121, 6.12.66, 6.18.6 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.