# CVE-2024-56651: can: hi311x: hi3110_can_ist(): fix potential use-after-free

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/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.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2024-12-27T15:02:50.759Z
- Modified: 2026-08-05T11:45:48.882Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a22bd630cfff496b270211745536e50e98eb3a45 before 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1; from a22bd630cfff496b270211745536e50e98eb3a45 before 1128022009444faf49359bd406cd665b177cb643; from a22bd630cfff496b270211745536e50e98eb3a45 before bc30b2fe8c54694f8ae08a5b8a5d174d16d93075; from a22bd630cfff496b270211745536e50e98eb3a45 before 9ad86d377ef4a19c75a9c639964879a5b25a433b; 303733fdab728d34708014b3096dc69ebae6e531; 410054f1cf75378a6f009359e5952a240102a1a2; d20bf7e76136fd4c1e47502a1f5773f2290013ed; 22e382d47de09e865a9214cc5c9f99256e65deaa; dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae; 330b0ac34beec4fef8b002549af5bc6d0b6f0836; f3d865a6b791abbc874739ed702ae64ad2607511; from 4.14.291 before 4.15; and 7 more (not affected: before 6.0; 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 4.14.291 before 4.15; from 4.19.256 before 4.20; from 5.4.211 before 5.5; from 5.10.137 before 5.11; from 5.15.61 before 5.16; from 5.18.18 before 5.19; from 5.19.2 before 5.20; from 6.0 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 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

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

---

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