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.
Metrics
Affected Vendors & Products
References
History
Sat, 28 Dec 2024 13:30:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
| |
Metrics |
threat_severity
|
cvssV3_1
|
Fri, 27 Dec 2024 15:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Description | 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. | |
Title | can: hi311x: hi3110_can_ist(): fix potential use-after-free | |
References |
|
MITRE
Status: PUBLISHED
Assigner: Linux
Published: 2024-12-27T15:02:50.759Z
Updated: 2024-12-27T15:02:50.759Z
Reserved: 2024-12-27T15:00:39.841Z
Link: CVE-2024-56651
Vulnrichment
No data.
NVD
Status : Received
Published: 2024-12-27T15:15:24.917
Modified: 2024-12-27T15:15:24.917
Link: CVE-2024-56651
Redhat