# CVE-2023-54039: can: j1939: j1939\_tp\_tx\_dat\_new(): fix out-of-bounds memory access

> 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.29% (percentile 14, 2026-11-30)
- **Published:** 2025-12-24T10:56:05.365Z
- **Modified:** 2026-06-17T06:46:41.667Z

## Who should check

- Anyone running Linux \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< d2136f05690c272dfc9f9d6efcc51d5f53494b33; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 70caa596d158a5d84b117f722d58f3ea503a5ba9; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 4fe1d9b6231a68ffc91318f57fd8e4982f028cf7; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 4c3fb22a6ec68258ee129a2e6b720f43dffc562f; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 36befc9aed6202b4a9b906529aea13eacd7e34ff; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< b45193cb4df556fe6251b285a5ce44046dd36b4a
- Anyone running Linux 5.4

## Description

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

can: j1939: j1939\_tp\_tx\_dat\_new(): fix out-of-bounds memory access

In the j1939\_tp\_tx\_dat\_new() function, an out-of-bounds memory access
could occur during the memcpy() operation if the size of skb-\>cb is
larger than the size of struct j1939\_sk\_buff\_cb. This is because the
memcpy() operation uses the size of skb-\>cb, leading to a read beyond
the struct j1939\_sk\_buff\_cb.

Updated the memcpy() operation to use the size of struct
j1939\_sk\_buff\_cb instead of the size of skb-\>cb. This ensures that the
memcpy() operation only reads the memory within the bounds of struct
j1939\_sk\_buff\_cb, preventing out-of-bounds memory access.

Additionally, add a BUILD\_BUG\_ON() to check that the size of skb-\>cb
is greater than or equal to the size of struct j1939\_sk\_buff\_cb. This
ensures that the skb-\>cb buffer is large enough to hold the
j1939\_sk\_buff\_cb structure.

\[mkl: rephrase commit message\]

## Affected and fixed versions

- Linux: \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< d2136f05690c272dfc9f9d6efcc51d5f53494b33; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 70caa596d158a5d84b117f722d58f3ea503a5ba9; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 4fe1d9b6231a68ffc91318f57fd8e4982f028cf7; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 4c3fb22a6ec68258ee129a2e6b720f43dffc562f; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 36befc9aed6202b4a9b906529aea13eacd7e34ff; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< b45193cb4df556fe6251b285a5ce44046dd36b4a (cvelist)
- Linux: 5.4 (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-54039. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54039.md
Affected: Linux >= 9d71dd0c70099914fcd063135da3c580865e924c, < d2136f05690c272dfc9f9d6efcc51d5f53494b33; >= 9d71dd0c70099914fcd063135da3c580865e924c, < 70caa596d158a5d84b117f722d58f3ea503a5ba9; >= 9d71dd0c70099914fcd063135da3c580865e924c, < 4fe1d9b6231a68ffc91318f57fd8e4982f028cf7; >= 9d71dd0c70099914fcd0631…
Fixed in: Linux 70caa596d158a5d84b117f722d58f3ea503a5ba9, Linux 4fe1d9b6231a68ffc91318f57fd8e4982f028cf7, Linux 4c3fb22a6ec68258ee129a2e6b720f43dffc562f, Linux 36befc9aed6202b4a9b906529aea13eacd7e34ff

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-54039 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< d2136f05690c272dfc9f9d6efcc51d5f53494b33; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 70caa596d158a5d84b117f722d58f3ea503a5ba9; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 4fe1d9b6231a68ffc91318f57fd8e4982f028cf7; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 4c3fb22a6ec68258ee129a2e6b720f43dffc562f; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< 36befc9aed6202b4a9b906529aea13eacd7e34ff; \>= 9d71dd0c70099914fcd063135da3c580865e924c, \< b45193cb4df556fe6251b285a5ce44046dd36b4a; Linux 5.4.

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

Yes. Fixed in Linux 70caa596d158a5d84b117f722d58f3ea503a5ba9, Linux 4fe1d9b6231a68ffc91318f57fd8e4982f028cf7, Linux 4c3fb22a6ec68258ee129a2e6b720f43dffc562f, Linux 36befc9aed6202b4a9b906529aea13eacd7e34ff. No fix listed yet: follow the vendor advisory.

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

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/d2136f05690c272dfc9f9d6efcc51d5f53494b33>
- other: <https://git.kernel.org/stable/c/70caa596d158a5d84b117f722d58f3ea503a5ba9>
- other: <https://git.kernel.org/stable/c/4fe1d9b6231a68ffc91318f57fd8e4982f028cf7>
- other: <https://git.kernel.org/stable/c/4c3fb22a6ec68258ee129a2e6b720f43dffc562f>
- other: <https://git.kernel.org/stable/c/36befc9aed6202b4a9b906529aea13eacd7e34ff>
- other: <https://git.kernel.org/stable/c/b45193cb4df556fe6251b285a5ce44046dd36b4a>

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

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