{"id":"CVE-2025-39925","aliases":["CVE-2025-39925"],"related":[],"kind":"vulnerability","state":"published","title":"can: j1939: implement NETDEV_UNREGISTER notification handler","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: implement NETDEV_UNREGISTER notification handler\n\nsyzbot is reporting\n\n  unregister_netdevice: waiting for vcan0 to become free. Usage count = 2\n\nproblem, for j1939 protocol did not have NETDEV_UNREGISTER notification\nhandler for undoing changes made by j1939_sk_bind().\n\nCommit 25fe97cb7620 (\"can: j1939: move j1939_priv_put() into sk_destruct\ncallback\") expects that a call to j1939_priv_put() can be unconditionally\ndelayed until j1939_sk_sock_destruct() is called. But we need to call\nj1939_priv_put() against an extra ref held by j1939_sk_bind() call\n(as a part of undoing changes made by j1939_sk_bind()) as soon as\nNETDEV_UNREGISTER notification fires (i.e. before j1939_sk_sock_destruct()\nis called via j1939_sk_release()). Otherwise, the extra ref on \"struct\nj1939_priv\" held by j1939_sk_bind() call prevents \"struct net_device\" from\ndropping the usage count to 1; making it impossible for\nunregister_netdevice() to continue.\n\n[mkl: remove space in front of label]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: implement NETDEV_UNREGISTER notification handler\n\nsyzbot is reporting\n\n  unregister_netdevice: waiting for vcan0 to become free. Usage count = 2\n\nproblem, for j1939 protocol did not have NETDEV_UNREGISTER notification\nhandler for undoing changes made by j1939_sk_bind().\n\nCommit 25fe97cb7620 (\"can: j1939: move j1939_priv_put() into sk_destruct\ncallback\") expects that a call to j1939_priv_put() can be unconditionally\ndelayed until j1939_sk_sock_destruct() is called. But we need to call\nj1939_priv_put() against an extra ref held by j1939_sk_bind() call\n(as a part of undoing changes made by j1939_sk_bind()) as soon as\nNETDEV_UNREGISTER notification fires (i.e. before j1939_sk_sock_destruct()\nis called via j1939_sk_release()). Otherwise, the extra ref on \"struct\nj1939_priv\" held by j1939_sk_bind() call prevents \"struct net_device\" from\ndropping the usage count to 1; making it impossible for\nunregister_netdevice() to continue.\n\n[mkl: remove space in front of label]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncan: j1939: implementar gestor de notificación NETDEV_UNREGISTER\n\nsyzbot está reportando\n\n  unregister_netdevice: waiting for vcan0 to become free. Usage count = 2\n\nproblema, porque el protocolo j1939 no tenía un gestor de notificación NETDEV_UNREGISTER para deshacer los cambios realizados por j1939_sk_bind().\n\nEl commit 25fe97cb7620 ('can: j1939: mover j1939_priv_put() al callback sk_destruct') espera que una llamada a j1939_priv_put() pueda retrasarse incondicionalmente hasta que se llame a j1939_sk_sock_destruct(). Pero necesitamos llamar a j1939_priv_put() contra una referencia extra mantenida por la llamada a j1939_sk_bind() (como parte de deshacer los cambios realizados por j1939_sk_bind()) tan pronto como se active la notificación NETDEV_UNREGISTER (es decir, antes de que se llame a j1939_sk_sock_destruct() a través de j1939_sk_release()). De lo contrario, la referencia extra en 'struct j1939_priv' mantenida por la llamada a j1939_sk_bind() impide que 'struct net_device' reduzca el contador de uso a 1; haciendo imposible que unregister_netdevice() continúe.\n\n[mkl: remove space in front of label]","source":"nvd"}],"published":"2025-10-01T08:07:13.123Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"479d8a2aedcc1db16f14c1a8a9c74b5bdf18b9ac","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"2c88069fac2c792e228e6a4ae71c9b9b5b9a87a6","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"76957b618ce729c3bd1e782fbc9d9991af653925","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"4e154cb5e7681c2910e2dfa09f05e3469e333745","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"da9e8f429139928570407e8f90559b5d46c20262","status":"affected"},{"type":"git","introduced":"9d71dd0c70099914fcd063135da3c580865e924c","fixed":"7fcbe5b2c6a4b5407bf2241fdb71e0a390f6ab9a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.15.220","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.156","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.108","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.8","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.4","fixed":"6.16.8"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/479d8a2aedcc1db16f14c1a8a9c74b5bdf18b9ac","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c88069fac2c792e228e6a4ae71c9b9b5b9a87a6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76957b618ce729c3bd1e782fbc9d9991af653925","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e154cb5e7681c2910e2dfa09f05e3469e333745","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da9e8f429139928570407e8f90559b5d46c20262","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fcbe5b2c6a4b5407bf2241fdb71e0a390f6ab9a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T17:39:05.628Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39925","url":"https://www.cve.org/CVERecord?id=CVE-2025-39925","licence":"CVE Terms of Use","modified":"2026-09-02T12:49:23.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39925","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39925","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.396Z","epss":{"score":0.00157,"percentile":0.05133,"date":"2026-12-01T12:00:22.000Z"}}