CVE-2024-56651

NameCVE-2024-56651
DescriptionIn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4076-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)bullseye5.10.223-1vulnerable
bullseye (security)5.10.234-1vulnerable
bookworm6.1.123-1fixed
bookworm (security)6.1.128-1fixed
trixie6.12.12-1fixed
sid6.12.17-1fixed
linux-6.1 (PTS)bullseye (security)6.1.128-1~deb11u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsourcebookworm6.1.123-1
linuxsource(unstable)6.12.5-1
linux-6.1sourcebullseye6.1.6.1.128-1~deb11u1DLA-4076-1

Notes

https://git.kernel.org/linus/9ad86d377ef4a19c75a9c639964879a5b25a433b (6.13-rc2)

Search for package or bug name: Reporting problems