APPLIED: [SRU][F/J/N][PATCH v2 0/1] CVE-2024-56651

Koichiro Den koichiro.den at canonical.com
Fri Feb 28 03:19:15 UTC 2025


On Thu, Feb 20, 2025 at 08:37:46AM GMT, Massimiliano Pellizzer wrote:
> [Impact]
> 
> 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.
> 
> [Fix]
> 
> Oracular: Fixed via upstream stable updates (LP: #2096827)
> Noble: Cherry picked from mainline
> Jammy: Backported from mainline
> Focal: Applied Jammy patch
> 
> [Test case]
> 
> Compile tested only.
> 
> [Where problems could occur]
> 
> A regression here is unlikely due to the very limited scope of the
> patch.
> 
> [Changes between v1 and v2]
> 
> For focal and jammy: used netif_rx_ni() because of missing commit:
> - baebdf48c3600 net: dev: Makes sure netif_rx() can be invoked in any context
> 
> Dario Binacchi (1):
>   can: hi311x: hi3110_can_ist(): fix potential use-after-free
> 
>  drivers/net/can/spi/hi311x.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Applied to noble:linux, jammy:linux, focal:linux master-next branches.
Thanks!



More information about the kernel-team mailing list