Bug 2334567 (CVE-2024-56651) - CVE-2024-56651 kernel: can: hi311x: hi3110_can_ist(): fix potential use-after-free
Summary: CVE-2024-56651 kernel: can: hi311x: hi3110_can_ist(): fix potential use-after...
Keywords:
Status: NEW
Alias: CVE-2024-56651
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-27 16:04 UTC by OSIDB Bzimport
Modified: 2024-12-28 01:39 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-27 16:04:03 UTC
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.

Comment 1 Avinash Hanwate 2024-12-28 01:35:46 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122740-CVE-2024-56651-2d22@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.