cve.bz

CVE-2024-56651 linux linux kernel: Use After Free

7.8 highEPSS 0.3%Fix available

High (7.8) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 26th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-56651 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-56651?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-56651?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-56651 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 4.14.291 before 4.15
Linuxfrom 4.19.256 before 4.20
Linuxfrom 5.4.211 before 5.5
Linuxfrom 5.10.137 before 5.11
Linuxfrom 5.15.61 before 5.16
Linuxfrom 5.18.18 before 5.19
Linuxfrom 5.19.2 before 5.20
Linux6.0 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.120
Linux6.66.6.66
Linux6.126.12.5
Linuxlater releases6.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.128-1~deb11u1DLA-4076-1
Debian12linux6.1.123-1DEBIAN-CVE-2024-56651
Debian13, 14linux6.12.5-1DEBIAN-CVE-2024-56651
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-56651
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2024-56651
Ubuntu20.04:LTSlinux5.4.0-214.234UBUNTU-CVE-2024-56651 USN-7461-1
Ubuntu20.04:LTSlinux-aws5.4.0-1144.154UBUNTU-CVE-2024-56651 USN-7462-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1082.89~20.04.1UBUNTU-CVE-2024-56651 USN-7455-5
Ubuntu20.04:LTSlinux-azure5.4.0-1149.156UBUNTU-CVE-2024-56651 USN-7461-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1087.96~20.04.1UBUNTU-CVE-2024-56651 USN-7455-1
Ubuntu20.04:LTSlinux-azure-fde-5.155.15.0-1087.96~20.04.1.1USN-7455-1
Ubuntu20.04:LTSlinux-bluefield5.4.0-1103.110UBUNTU-CVE-2024-56651 USN-7461-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1147.156UBUNTU-CVE-2024-56651 USN-7461-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1081.90~20.04.1UBUNTU-CVE-2024-56651 USN-7459-2
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2024-56651
98 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.3.18-150300.59.201.1SUSE-SU-2025:1263-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Micro 5.1 and 3 morekernel-default-base5.3.18-150300.59.201.1.150300.18.120.1SUSE-SU-2025:1263-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.201.1SUSE-SU-2025:1263-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.161.1SUSE-SU-2025:1195-1
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.38.1SUSE-SU-2025:0499-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.161.1SUSE-SU-2025:1195-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.161.1.150400.24.80.1SUSE-SU-2025:1195-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.100.1.150500.6.47.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_561-150300.7.3.1SUSE-SU-2025:1263-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_391-150400.9.3.1SUSE-SU-2025:1195-1
SUSELinux Enterprise Live Patching 15 SP5kernel-default5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
31 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.38.1SUSE-SU-2025:0499-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.26.1SUSE-SU-2025:0428-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.38.1.150600.12.16.2SUSE-SU-2025:0499-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.26.1SUSE-SU-2025:0557-1
Azure Linux2kernel5.15.173.1-1AZL-54750
Azure Linux3kernel6.6.76.1-1AZL-54884
Alpaquita23linux-lts6.1.120-r0BELL-CVE-2024-56651
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2024-56651
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2024-56651

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate impact for Red Hat Enterprise Linux because exploitation requires local access alongside specialized Controller Area Network (CAN) hardware utilizing the Holt HI-3110 SPI controller. The issue stems from handling error counters on network packet buffers after submission to the networking stack, which could trigger a use-after-free condition. Standard Red Hat Enterprise Linux installations do not enable this hardware driver by default, substantially limiting exposure in typical enterprise environments.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-56651.

References

Check your stackJSON