Skip to main content
← All vulnerabilities
CVE-2024-56651

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.15, 4.20, 5.5, 5.11, 5.16, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From 4.14.291 · fixed in 4.15; From 4.19.256 · fixed in 4.20; From 5.4.211 · fixed in 5.5; From 5.10.137 · fixed in 5.11; From 5.15.61 · fixed in 5.16; From 5.18.18 · fixed in 5.19; From 5.19.2 · fixed in 5.20

  • Linux Linux

    6.0

References 4

git.kernel.org