CVE-2025-38224

linux: In the Linux kernel, the following vulnerability has been resolved: can: kvaser_pciefd: refine error prone echo_skb_...

CVE-2025-38224 is fixed in 13 products on 1 platform, first by DEBIAN-CVE-2025-38224, released July 4, 2025. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
7.1
high
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0018
7th percentile

In the Linux kernel, the following vulnerability has been resolved: can: kvaser_pciefd: refine error prone echo_skb_max handling logic echo_skb_max should define the supported upper limit of echo_skb[] allocated inside the netdevice's priv. The corresponding size value provided by this driver to alloc_candev() is KVASER_PCIEFD_CAN_TX_MAX_COUNT which is 17. But later echo_skb_max is rounded up to the nearest power of two (for the max case, that would be 32) and the tx/ack indices calculated further during tx/rx may exceed the upper array boundary. Kasan reported this for the ack case inside kvaser_pciefd_handle_ack_packet(), though the xmit function has actually caught the same thing earlier. BUG: KASAN: slab-out-of-bounds in kvaser_pciefd_handle_ack_packet+0x2d7/0x92a drivers/net/can/kvaser_pciefd.c:1528 Read of size 8 at addr ffff888105e4f078 by task swapper/4/0 CPU: 4 UID: 0 PID: 0 Comm: swapper/4 Not tainted 6.15.0 #12 PREEMPT(voluntary) Call Trace: <IRQ> dump_stack_lvl lib/dump_stack.c:122 print_report mm/kasan/report.c:521 kasan_report mm/kasan/report.c:634 kvaser_pciefd_handle_ack_packet drivers/net/can/kvaser_pciefd.c:1528 kvaser_pciefd_read_packet drivers/net/can/kvaser_pciefd.c:1605 kvaser_pciefd_read_buffer drivers/net/can/kvaser_pciefd.c:1656 kvaser_pciefd_receive_irq drivers/net/can/kvaser_pciefd.c:1684 kvaser_pciefd_irq_handler drivers/net/can/kvaser_pciefd.c:1733 __handle_irq_event_percpu kernel/irq/handle.c:158 handle_irq_event kernel/irq/handle.c:210 handle_edge_irq kernel/irq/chip.c:833 __common_interrupt arch/x86/kernel/irq.c:296 common_interrupt arch/x86/kernel/irq.c:286 </IRQ> Tx max count definitely matters for kvaser_pciefd_tx_avail(), but for seq numbers' generation that's not the case - we're free to calculate them as would be more convenient, not taking tx max count into account. The only downside is that the size of echo_skb[] should correspond to the max seq number (not tx max count), so in some situations a bit more memory would be consumed than could be. Thus make the size of the underlying echo_skb[] sufficient for the rounded max tx value. Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

Where it's fixed

ProductFixed inFixReleased
Linux
dtb-aarch64 · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-64kb · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-64kb · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-default · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-default · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-default-base · opensuse-leap 16.0 6.12.0-160000.6.1.160000.2.4 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-default-base · sles 16.0 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-docs · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-docs · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-kvmsmall · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-kvmsmall · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-obs-build · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-obs-qa · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-obs-qa · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-rt · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-source · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-source · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-syms · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-syms · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
kernel-zfcpdump · opensuse-leap 16.0 6.12.0-160000.6.1 OPENSUSE-SU-2025:20081-1 Nov 25, 2025
kernel-zfcpdump · sles 16.0 6.12.0-160000.6.1 SUSE-SU-2025:21139-1 Nov 25, 2025
linux · Debian 13.5 (trixie) 6.12.35-1 DEBIAN-CVE-2025-38224 Jul 4, 2025
linux · Debian 14 6.12.35-1 DEBIAN-CVE-2025-38224 Jul 4, 2025

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.