8.8high
can: hi311x: hi3110_can_ist(): fix potential use-after-free
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.33% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a22bd630cfff496b270211745536e50e98eb3a45 before 4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1, from a22bd630cfff496b270211745536e50e98eb3a45 before 1128022009444faf49359bd406cd665b177cb643, from a22bd630cfff496b270211745536e50e98eb3a45 before bc30b2fe8c54694f8ae08a5b8a5d174d16d93075, from a22bd630cfff496b270211745536e50e98eb3a45 before 9ad86d377ef4a19c75a9c639964879a5b25a433b, 303733fdab728d34708014b3096dc69ebae6e531, 410054f1cf75378a6f009359e5952a240102a1a2, d20bf7e76136fd4c1e47502a1f5773f2290013ed, 22e382d47de09e865a9214cc5c9f99256e65deaa and 11 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 * | CVE List |
| 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 and 3 more | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: hi311x: hi3110_can_ist(): corrige un posible use-after-free el commit a22bd630cfff ("can: hi311x: no informar txerr y rxerr durante el apagado del bus") eliminó el informe de rxerr y txerr incluso en caso de funcionamiento correcto (es decir, sin apagado del bus). La información del recuento de errores agregada al marco CAN después de netif_rx() es un posible use-after-free, ya que no hay garantía de que el skb esté en el mismo estado. Podría liberarse o reutilizarse. Corrija el problema posponiendo la llamada a netif_rx() en caso de informes de txerr y rxerr.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56651 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-56651 changed 2026-08-04 | Public domain |