{"id":"CVE-2024-56651","summary":"can: hi311x: hi3110_can_ist(): fix potential use-after-free","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: hi311x: hi3110_can_ist(): fix potential use-after-free\n\nThe commit a22bd630cfff (\"can: hi311x: do not report txerr and rxerr\nduring bus-off\") removed the reporting of rxerr and txerr even in case\nof correct operation (i. e. not bus-off).\n\nThe error count information added to the CAN frame after netif_rx() is\na potential use after free, since there is no guarantee that the skb\nis in the same state. It might be freed or reused.\n\nFix the issue by postponing the netif_rx() call in case of txerr and\nrxerr reporting.","modified":"2026-04-02T12:25:05.421460Z","published":"2024-12-27T15:02:50.759Z","related":["MGASA-2025-0030","MGASA-2025-0032","SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1195-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56651.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1128022009444faf49359bd406cd665b177cb643"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ad86d377ef4a19c75a9c639964879a5b25a433b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc30b2fe8c54694f8ae08a5b8a5d174d16d93075"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56651.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56651"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a22bd630cfff496b270211745536e50e98eb3a45"},{"fixed":"4ad77eb8f2e07bcfa0e28887d3c7dbb732d92cc1"},{"fixed":"1128022009444faf49359bd406cd665b177cb643"},{"fixed":"bc30b2fe8c54694f8ae08a5b8a5d174d16d93075"},{"fixed":"9ad86d377ef4a19c75a9c639964879a5b25a433b"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"303733fdab728d34708014b3096dc69ebae6e531"},{"last_affected":"410054f1cf75378a6f009359e5952a240102a1a2"},{"last_affected":"d20bf7e76136fd4c1e47502a1f5773f2290013ed"},{"last_affected":"22e382d47de09e865a9214cc5c9f99256e65deaa"},{"last_affected":"dcfcd5fc999b1eb7946de1fd031bc3aaf224c5ae"},{"last_affected":"330b0ac34beec4fef8b002549af5bc6d0b6f0836"},{"last_affected":"f3d865a6b791abbc874739ed702ae64ad2607511"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56651.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}