CVE-2024-56651

can: hi311x: hi3110_can_ist(): fix potential use-after-free

8.8 high EPSS 0.33%

Published 27 Dec 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2024-56651

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-56651 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.

Check my servers

Description

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

can: hi311x: hi3110_can_ist(): fix potential use-after-free

The commit a22bd630cfff ("can: hi311x: do not report txerr and rxerr during bus-off") removed the reporting of rxerr and txerr even in case of correct operation (i. e. not bus-off).

The error count information added to the CAN frame after netif_rx() is a potential use after free, since there is no guarantee that the skb is in the same state. It might be freed or reused.

Fix the issue by postponing the netif_rx() call in case of txerr and rxerr reporting.

Severity (CVSS)

8.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
adjacent: the attacker has to be on the same local network or link
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)
7.8 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user 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.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.8% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 11 Feb 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a22bd630cfff496b270211745536e50e98eb3a45, before 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1
affected from a22bd630cfff496b270211745536e50e98eb3a45, before 1128022009444faf49359bd406cd665b177cb643
affected from a22bd630cfff496b270211745536e50e98eb3a45, before bc30b2fe8c54694f8ae08a5b8a5d174d16d93075
affected from a22bd630cfff496b270211745536e50e98eb3a45, before 9ad86d377ef4a19c75a9c639964879a5b25a433b
affected 303733fdab728d34708014b3096dc69ebae6e531
affected 410054f1cf75378a6f009359e5952a240102a1a2
affected d20bf7e76136fd4c1e47502a1f5773f2290013ed
affected 22e382d47de09e865a9214cc5c9f99256e65deaa
affected dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae
affected 330b0ac34beec4fef8b002549af5bc6d0b6f0836
affected f3d865a6b791abbc874739ed702ae64ad2607511
affected from 4.14.291, before 4.15
affected from 4.19.256, before 4.20
affected from 5.4.211, before 5.5
affected from 5.10.137, before 5.11
affected from 5.15.61, before 5.16
affected from 5.18.18, before 5.19
affected from 5.19.2, before 5.20
Other versions: unaffected
Linux
affected 6.0
unaffected before 6.0
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-56651 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-56651

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-56651
trivy image --scanners vuln IMAGE | grep CVE-2024-56651

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

Source: the record CVE-2024-56651 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.