CVE-2025-71182

MEDIUM

Linux Kernel 5.4.0-6.18.6 - Use-After-Free in CAN J1939 Session Activation

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0001
EPSS Percentile 0.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

Status published
Products (25)
linux/Kernel 5.11.0 - 5.15.198linux
linux/Kernel 5.16.0 - 6.1.161linux
linux/Kernel 5.4.0 - 5.10.248linux
linux/Kernel 6.13.0 - 6.18.6linux
linux/Kernel 6.2.0 - 6.6.121linux
linux/Kernel 6.7.0 - 6.12.66linux
Linux/Linux < 5.4
Linux/Linux 5.10.248 - 5.10.*
Linux/Linux 5.15.198 - 5.15.*
Linux/Linux 5.4
... and 15 more
Published Jan 31, 2026
Tracked Since Feb 18, 2026