CVE-2024-56651

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

HIGH
7.8
CVSS Score
Published: December 27, 2024 at 03:02 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.14.291v ≥ 4.19.256v ≥ 5.10.137v ≥ 5.15.61v ≥ 5.18.18v ≥ 5.19.2v ≥ 5.4.2114.14.291 ≤ v < 4.154.19.256 ≤ v < 4.205.10.137 ≤ v < 5.115.15.61 ≤ v < 5.165.18.18 ≤ v < 5.195.19.2 ≤ v < 5.205.4.211 ≤ v < 5.56.0 ≤ v < 6.1.1206.0 ≤ v < 6.12.56.0 ≤ v < 6.136.0 ≤ v < 6.6.666.2 ≤ v < 6.6.666.7 ≤ v < 6.12.522e382d47de09e865a9214cc5c9f99256e65deaa303733fdab728d34708014b3096dc69ebae6e531330b0ac34beec4fef8b002549af5bc6d0b6f08364.14.2914.19.256410054f1cf75378a6f009359e5952a240102a1a25.10.1375.15.615.18.185.19.25.4.2116.13 rc1a22bd630cfff496b270211745536e50e98eb3a45d20bf7e76136fd4c1e47502a1f5773f2290013eddcfcd5fc999b1eb7946de1fd031bc3aaf224c5aef3d865a6b791abbc874739ed702ae64ad2607511
Vendor states this is fixed in 1128022009444faf49359bd406cd665b177cb643 (fixed)
Vendor states this is fixed in 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1 (fixed)
Vendor states this is fixed in 9ad86d377ef4a19c75a9c639964879a5b25a433b (fixed)
Vendor states this is fixed in bc30b2fe8c54694f8ae08a5b8a5d174d16d93075 (fixed)
Affected range stops below 4.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.16, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.19, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.20, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.0 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.12.5 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.66 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1128022009444faf49359bd406cd665b177cb643
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9ad86d377ef4a19c75a9c639964879a5b25a433b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bc30b2fe8c54694f8ae08a5b8a5d174d16d93075
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card