# CVE-2024-56651: can: hi311x: hi3110\_can\_ist(): fix potential use-after-free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.44% (percentile 30, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2024-12-27T15:02:50.759Z
- **Modified:** 2026-08-05T11:45:48.882Z

## Who should check

- Anyone running Linux \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 1128022009444faf49359bd406cd665b177cb643; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< bc30b2fe8c54694f8ae08a5b8a5d174d16d93075; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 9ad86d377ef4a19c75a9c639964879a5b25a433b; 303733fdab728d34708014b3096dc69ebae6e531; 410054f1cf75378a6f009359e5952a240102a1a2; d20bf7e76136fd4c1e47502a1f5773f2290013ed; 22e382d47de09e865a9214cc5c9f99256e65deaa; dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae; 330b0ac34beec4fef8b002549af5bc6d0b6f0836; …
- Anyone running Linux 6.0

## 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 and fixed versions

- Linux: \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 1128022009444faf49359bd406cd665b177cb643; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< bc30b2fe8c54694f8ae08a5b8a5d174d16d93075; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 9ad86d377ef4a19c75a9c639964879a5b25a433b; 303733fdab728d34708014b3096dc69ebae6e531; 410054f1cf75378a6f009359e5952a240102a1a2; d20bf7e76136fd4c1e47502a1f5773f2290013ed; 22e382d47de09e865a9214cc5c9f99256e65deaa; dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae; 330b0ac34beec4fef8b002549af5bc6d0b6f0836; … (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56651. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56651.md
Affected: Linux >= a22bd630cfff496b270211745536e50e98eb3a45, < 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1; >= a22bd630cfff496b270211745536e50e98eb3a45, < 1128022009444faf49359bd406cd665b177cb643; >= a22bd630cfff496b270211745536e50e98eb3a45, < bc30b2fe8c54694f8ae08a5b8a5d174d16d93075; >= a22bd630cfff496b2702117…
Fixed in: Linux 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1, Linux 1128022009444faf49359bd406cd665b177cb643, Linux 9ad86d377ef4a19c75a9c639964879a5b25a433b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56651 being exploited?

There is no confirmed exploitation: CVE-2024-56651 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-56651?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56651?

Linux \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 1128022009444faf49359bd406cd665b177cb643; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< bc30b2fe8c54694f8ae08a5b8a5d174d16d93075; \>= a22bd630cfff496b270211745536e50e98eb3a45, \< 9ad86d377ef4a19c75a9c639964879a5b25a433b; 303733fdab728d34708014b3096dc69ebae6e531; 410054f1cf75378a6f009359e5952a240102a1a2; d20bf7e76136fd4c1e47502a1f5773f2290013ed; 22e382d47de09e865a9214cc5c9f99256e65deaa; dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae; 330b0ac34beec4fef8b002549af5bc6d0b6f0836; …; Linux 6.0.

### Is there a fix for CVE-2024-56651?

Yes. Fixed in Linux 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1, Linux 1128022009444faf49359bd406cd665b177cb643, Linux 9ad86d377ef4a19c75a9c639964879a5b25a433b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-56651?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1>
- patch: <https://git.kernel.org/stable/c/1128022009444faf49359bd406cd665b177cb643>
- patch: <https://git.kernel.org/stable/c/bc30b2fe8c54694f8ae08a5b8a5d174d16d93075>
- patch: <https://git.kernel.org/stable/c/9ad86d377ef4a19c75a9c639964879a5b25a433b>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56651>

HTML: <https://flawdb.com/CVE-2024-56651> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56651>
