{"id":"DEBIAN-CVE-2023-54039","details":"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-\u003ecb is larger than the size of struct j1939_sk_buff_cb. This is because the memcpy() operation uses the size of skb-\u003ecb, 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-\u003ecb. 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-\u003ecb is greater than or equal to the size of struct j1939_sk_buff_cb. This ensures that the skb-\u003ecb buffer is large enough to hold the j1939_sk_buff_cb structure.  [mkl: rephrase commit message]","modified":"2026-09-15T08:47:27.381904542Z","published":"2025-12-24T11:15:56.890Z","upstream":["CVE-2023-54039"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-54039"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.25-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-54039.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.25-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-54039.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.25-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2023-54039.json"}}],"schema_version":"1.9.0"}