{"id":"CVE-2023-54152","aliases":["CVE-2023-54152"],"related":[],"kind":"vulnerability","state":"published","title":"can: j1939: prevent deadlock by moving j1939_sk_errqueue()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: prevent deadlock by moving j1939_sk_errqueue()\n\nThis commit addresses a deadlock situation that can occur in certain\nscenarios, such as when running data TP/ETP transfer and subscribing to\nthe error queue while receiving a net down event. The deadlock involves\nlocks in the following order:\n\n3\n  j1939_session_list_lock ->  active_session_list_lock\n  j1939_session_activate\n  ...\n  j1939_sk_queue_activate_next -> sk_session_queue_lock\n  ...\n  j1939_xtp_rx_eoma_one\n\n2\n  j1939_sk_queue_drop_all  ->  sk_session_queue_lock\n  ...\n  j1939_sk_netdev_event_netdown -> j1939_socks_lock\n  j1939_netdev_notify\n\n1\n  j1939_sk_errqueue -> j1939_socks_lock\n  __j1939_session_cancel -> active_session_list_lock\n  j1939_tp_rxtimer\n\n       CPU0                    CPU1\n       ----                    ----\n  lock(&priv->active_session_list_lock);\n                               lock(&jsk->sk_session_queue_lock);\n                               lock(&priv->active_session_list_lock);\n  lock(&priv->j1939_socks_lock);\n\nThe solution implemented in this commit is to move the\nj1939_sk_errqueue() call out of the active_session_list_lock context,\nthus preventing the deadlock situation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: j1939: prevent deadlock by moving j1939_sk_errqueue()\n\nThis commit addresses a deadlock situation that can occur in certain\nscenarios, such as when running data TP/ETP transfer and subscribing to\nthe error queue while receiving a net down event. The deadlock involves\nlocks in the following order:\n\n3\n  j1939_session_list_lock ->  active_session_list_lock\n  j1939_session_activate\n  ...\n  j1939_sk_queue_activate_next -> sk_session_queue_lock\n  ...\n  j1939_xtp_rx_eoma_one\n\n2\n  j1939_sk_queue_drop_all  ->  sk_session_queue_lock\n  ...\n  j1939_sk_netdev_event_netdown -> j1939_socks_lock\n  j1939_netdev_notify\n\n1\n  j1939_sk_errqueue -> j1939_socks_lock\n  __j1939_session_cancel -> active_session_list_lock\n  j1939_tp_rxtimer\n\n       CPU0                    CPU1\n       ----                    ----\n  lock(&priv->active_session_list_lock);\n                               lock(&jsk->sk_session_queue_lock);\n                               lock(&priv->active_session_list_lock);\n  lock(&priv->j1939_socks_lock);\n\nThe solution implemented in this commit is to move the\nj1939_sk_errqueue() call out of the active_session_list_lock context,\nthus preventing the deadlock situation.","source":"cvelist"}],"published":"2025-12-24T13:07:03.310Z","modified":"2026-06-17T06:46:53.800Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5b9272e93f2efe3f6cda60cc2c26817b2ce49386","fixed":"8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4","status":"affected"},{"type":"git","introduced":"5b9272e93f2efe3f6cda60cc2c26817b2ce49386","fixed":"ace6aa2ab5ba5869563ca689bbd912100514ae7b","status":"affected"},{"type":"git","introduced":"5b9272e93f2efe3f6cda60cc2c26817b2ce49386","fixed":"f09ce9d765de1f064ce3919f57c6beb061744784","status":"affected"},{"type":"git","introduced":"5b9272e93f2efe3f6cda60cc2c26817b2ce49386","fixed":"d1366b283d94ac4537a4b3a1e8668da4df7ce7e9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.15","status":"unaffected"},{"type":"semver","introduced":"5.15.106","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.23","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.2.10","lastAffected":"6.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ace6aa2ab5ba5869563ca689bbd912100514ae7b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f09ce9d765de1f064ce3919f57c6beb061744784","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1366b283d94ac4537a4b3a1e8668da4df7ce7e9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54152","url":"https://www.cve.org/CVERecord?id=CVE-2023-54152","licence":"CVE Terms of Use","modified":"2026-05-11T19:56:29.583Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54152","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54152","licence":"Public domain","modified":"2026-06-17T06:46:53.800Z"}],"updatedAt":"2026-11-25T22:58:35.197Z","epss":{"score":0.00214,"percentile":0.12452,"date":"2026-12-01T12:00:22.000Z"}}