# CVE-2024-56645: can: j1939: j1939_session_new(): fix skb reference counting

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-12-27T15:02:46.531Z
- Modified: 2026-08-05T11:45:46.741Z
- Assigned by: Linux

## Description

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

can: j1939: j1939_session_new(): fix skb reference counting

Since j1939_session_skb_queue() does an extra skb_get() for each new
skb, do the same for the initial one in j1939_session_new() to avoid
refcount underflow.

[mkl: clean up commit message]

(As written by CVE List.)

## Affected

- Linux Linux: from 9d71dd0c70099914fcd063135da3c580865e924c before 224e606a8d8e8c7db94036272c47a37455667313; from 9d71dd0c70099914fcd063135da3c580865e924c before b3282c2bebeeb82ceec492ee4972f51ee7a4a132; from 9d71dd0c70099914fcd063135da3c580865e924c before 4199dd78a59896e091d3a7a05a77451aa7fd724d; from 9d71dd0c70099914fcd063135da3c580865e924c before f117cba69cbbd496babb3defcdf440df4fd6fe14; from 9d71dd0c70099914fcd063135da3c580865e924c before 426d94815e12b6bdb9a75af294fbbafb9301601d; from 9d71dd0c70099914fcd063135da3c580865e924c before 68fceb143b635cdc59fed3896d5910aff38f345e; from 9d71dd0c70099914fcd063135da3c580865e924c before a8c695005bfe6569acd73d777ca298ddddd66105; 5.4 (not affected: before 5.4; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.4 before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.66; from 6.7 before 6.12.5; 6.13

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/224e606a8d8e8c7db94036272c47a37455667313> (patch)
- <https://git.kernel.org/stable/c/b3282c2bebeeb82ceec492ee4972f51ee7a4a132> (patch)
- <https://git.kernel.org/stable/c/4199dd78a59896e091d3a7a05a77451aa7fd724d> (patch)
- <https://git.kernel.org/stable/c/f117cba69cbbd496babb3defcdf440df4fd6fe14> (patch)
- <https://git.kernel.org/stable/c/426d94815e12b6bdb9a75af294fbbafb9301601d> (patch)
- <https://git.kernel.org/stable/c/68fceb143b635cdc59fed3896d5910aff38f345e> (patch)
- <https://git.kernel.org/stable/c/a8c695005bfe6569acd73d777ca298ddddd66105> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2024-56645](https://www.cve.org/CVERecord?id=CVE-2024-56645), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-56645](https://nvd.nist.gov/vuln/detail/CVE-2024-56645), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-56645 · Whole record: https://cve.day/CVE-2024-56645.json · Rebuilt by cve.day 2026-11-25T22:58:50.500Z
