# CVE-2025-71182: can: j1939: make j1939_session_activate() fail if device is no longer registered

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-01-31T11:38:55.157Z
- Modified: 2026-10-19T19:17:16.013Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9d71dd0c70099914fcd063135da3c580865e924c before ebb0dfd718dd31c8d3600612ca4b7207ec3d923a; from 9d71dd0c70099914fcd063135da3c580865e924c before c3a4316e3c746af415c0fd6c6d489ad13f53714d; from 9d71dd0c70099914fcd063135da3c580865e924c before 46ca9dc978923c5e1247a9e9519240ba7ace413c; from 9d71dd0c70099914fcd063135da3c580865e924c before 78d87b72cebe2a993fd5b017e9f14fb6278f2eae; from 9d71dd0c70099914fcd063135da3c580865e924c before ba6f0d1832eeb5eb3a6dc5cb30e0f720b3cb3536; from 9d71dd0c70099914fcd063135da3c580865e924c before 79dd3f1d9dd310c2af89b09c71f34d93973b200f; from 9d71dd0c70099914fcd063135da3c580865e924c before 5d5602236f5db19e8b337a2cd87a90ace5ea776d; 5.4 (not affected: before 5.4; from 5.10.248 up to 5.10.*; from 5.15.198 up to 5.15.*; from 6.1.161 up to 6.1.*; from 6.6.121 up to 6.6.*; from 6.12.66 up to 6.12.*; from 6.18.6 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 5.4.1 before 5.10.248; from 5.11 before 5.15.198; from 5.16 before 6.1.161; from 6.2 before 6.6.121; from 6.7 before 6.12.66; from 6.13 before 6.18.6; 5.4; 6.19

## References

- <https://git.kernel.org/stable/c/ebb0dfd718dd31c8d3600612ca4b7207ec3d923a> (patch)
- <https://git.kernel.org/stable/c/c3a4316e3c746af415c0fd6c6d489ad13f53714d> (patch)
- <https://git.kernel.org/stable/c/46ca9dc978923c5e1247a9e9519240ba7ace413c> (patch)
- <https://git.kernel.org/stable/c/78d87b72cebe2a993fd5b017e9f14fb6278f2eae> (patch)
- <https://git.kernel.org/stable/c/ba6f0d1832eeb5eb3a6dc5cb30e0f720b3cb3536> (patch)
- <https://git.kernel.org/stable/c/79dd3f1d9dd310c2af89b09c71f34d93973b200f> (patch)
- <https://git.kernel.org/stable/c/5d5602236f5db19e8b337a2cd87a90ace5ea776d> (patch)

## Sources

- CVE List: [CVE-2025-71182](https://www.cve.org/CVERecord?id=CVE-2025-71182), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2025-71182](https://nvd.nist.gov/vuln/detail/CVE-2025-71182), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-71182 · Whole record: https://cve.day/CVE-2025-71182.json · Rebuilt by cve.day 2026-11-25T22:59:10.964Z
