# CVE-2023-54152: can: j1939: prevent deadlock by moving j1939\_sk\_errqueue()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T13:07:03.310Z
- **Modified:** 2026-06-17T06:46:53.800Z

## Who should check

- Anyone running Linux \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< 8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< ace6aa2ab5ba5869563ca689bbd912100514ae7b; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< f09ce9d765de1f064ce3919f57c6beb061744784; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< d1366b283d94ac4537a4b3a1e8668da4df7ce7e9
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

can: j1939: prevent deadlock by moving j1939\_sk\_errqueue()

This commit addresses a deadlock situation that can occur in certain
scenarios, such as when running data TP/ETP transfer and subscribing to
the error queue while receiving a net down event. The deadlock involves
locks in the following order:

3
  j1939\_session\_list\_lock -\>  active\_session\_list\_lock
  j1939\_session\_activate
  ...
  j1939\_sk\_queue\_activate\_next -\> sk\_session\_queue\_lock
  ...
  j1939\_xtp\_rx\_eoma\_one

2
  j1939\_sk\_queue\_drop\_all  -\>  sk\_session\_queue\_lock
  ...
  j1939\_sk\_netdev\_event\_netdown -\> j1939\_socks\_lock
  j1939\_netdev\_notify

1
  j1939\_sk\_errqueue -\> j1939\_socks\_lock
  \_\_j1939\_session\_cancel -\> active\_session\_list\_lock
  j1939\_tp\_rxtimer

       CPU0                    CPU1
       ----                    ----
  lock(&priv-\>active\_session\_list\_lock);
                               lock(&jsk-\>sk\_session\_queue\_lock);
                               lock(&priv-\>active\_session\_list\_lock);
  lock(&priv-\>j1939\_socks\_lock);

The solution implemented in this commit is to move the
j1939\_sk\_errqueue() call out of the active\_session\_list\_lock context,
thus preventing the deadlock situation.

## Affected and fixed versions

- Linux: \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< 8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< ace6aa2ab5ba5869563ca689bbd912100514ae7b; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< f09ce9d765de1f064ce3919f57c6beb061744784; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< d1366b283d94ac4537a4b3a1e8668da4df7ce7e9 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54152. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54152.md
Affected: Linux >= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, < 8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4; >= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, < ace6aa2ab5ba5869563ca689bbd912100514ae7b; >= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, < f09ce9d765de1f064ce3919f57c6beb061744784; >= 5b9272e93f2efe3f6cda60c…
Fixed in: Linux 8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54152 being exploited?

There is no confirmed exploitation: CVE-2023-54152 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54152?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54152?

Linux \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< 8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< ace6aa2ab5ba5869563ca689bbd912100514ae7b; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< f09ce9d765de1f064ce3919f57c6beb061744784; \>= 5b9272e93f2efe3f6cda60cc2c26817b2ce49386, \< d1366b283d94ac4537a4b3a1e8668da4df7ce7e9; Linux 5.15.

### Is there a fix for CVE-2023-54152?

Yes. Fixed in Linux 8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54152?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8a581b71cf686b4cd1a85c9c2dfc2fb88382c3b4>
- other: <https://git.kernel.org/stable/c/ace6aa2ab5ba5869563ca689bbd912100514ae7b>
- other: <https://git.kernel.org/stable/c/f09ce9d765de1f064ce3919f57c6beb061744784>
- other: <https://git.kernel.org/stable/c/d1366b283d94ac4537a4b3a1e8668da4df7ce7e9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54152>

HTML: <https://flawdb.com/CVE-2023-54152> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54152>
