CVE-2024-56645
can: j1939: j1939_session_new(): fix skb reference counting
Check your servers for CVE-2024-56645
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-56645 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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]
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.68%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 53.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9d71dd0c70099914fcd063135da3c580865e924c, before 224e606a8d8e8c7db94036272c47a37455667313 affected from 9d71dd0c70099914fcd063135da3c580865e924c, before b3282c2bebeeb82ceec492ee4972f51ee7a4a132 affected from 9d71dd0c70099914fcd063135da3c580865e924c, before 4199dd78a59896e091d3a7a05a77451aa7fd724d affected from 9d71dd0c70099914fcd063135da3c580865e924c, before f117cba69cbbd496babb3defcdf440df4fd6fe14 affected from 9d71dd0c70099914fcd063135da3c580865e924c, before 426d94815e12b6bdb9a75af294fbbafb9301601d affected from 9d71dd0c70099914fcd063135da3c580865e924c, before 68fceb143b635cdc59fed3896d5910aff38f345e affected from 9d71dd0c70099914fcd063135da3c580865e924c, before a8c695005bfe6569acd73d777ca298ddddd66105
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 5.4.287 up to and including 5.4.* unaffected from 5.10.231 up to and including 5.10.* unaffected from 5.15.174 up to and including 5.15.* unaffected from 6.1.120 up to and including 6.1.* unaffected from 6.6.66 up to and including 6.6.* unaffected from 6.12.5 up to and including 6.12.* unaffected 6.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-56645 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-56645
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-56645
trivy image --scanners vuln IMAGE | grep CVE-2024-56645
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/224e606a8d8e8c7db94036272c47a37455667313 git.kernel.org
- https://git.kernel.org/stable/c/b3282c2bebeeb82ceec492ee4972f51ee7a4a132 git.kernel.org
- https://git.kernel.org/stable/c/4199dd78a59896e091d3a7a05a77451aa7fd724d git.kernel.org
- https://git.kernel.org/stable/c/f117cba69cbbd496babb3defcdf440df4fd6fe14 git.kernel.org
- https://git.kernel.org/stable/c/426d94815e12b6bdb9a75af294fbbafb9301601d git.kernel.org
- https://git.kernel.org/stable/c/68fceb143b635cdc59fed3896d5910aff38f345e git.kernel.org
- https://git.kernel.org/stable/c/a8c695005bfe6569acd73d777ca298ddddd66105 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
Source: the record CVE-2024-56645 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse