Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38224— can: kvaser_pciefd: refine error prone echo_skb_max handling logic

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于kvaser_pciefd驱动中echo_skb_max处理逻辑不当,可能导致数组越界访问。

CVSS 7.8 · High EPSS 0.17% · P6

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 11

VendorProduct Version RangeStatus
Linux Linux 352fbde14177d608a54120b6ff559ce5b3cf6238< d8a054b6e6824a8b52c3977ebd38c9583a63efac affected
8256e0ca601051933e9395746817f3801fa9a6bf< a6550c9aa11e2f57f9cdaa6249cdd44d446be874 affected
8256e0ca601051933e9395746817f3801fa9a6bf< 54ec8b08216f3be2cc98b33633d3c8ea79749895 affected
f14512f3ee09cda986191c8dd7f54972afa2c763 affected
6.12.31< 6.12.35 affected
6.14.9< 6.15 affected
6.15 affected
< 6.15 unaffected
… +3 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38224

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
can: kvaser_pciefd: refine error prone echo_skb_max handling logic
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于kvaser_pciefd驱动中echo_skb_max处理逻辑不当,可能导致数组越界访问。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 352fbde14177d608a54120b6ff559ce5b3cf6238 ~ d8a054b6e6824a8b52c3977ebd38c9583a63efac -
Linux Linux 6.15 -

II. Public POCs for CVE-2025-38224

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38224

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-07-04 · 59 CVEs total

CVE-2025-38209 9.8 CRITICAL nvme-tcp: remove tag set when second admin queue config fails
CVE-2025-38211 9.8 CRITICAL RDMA/iwcm: Fix use-after-free of work objects after cm_id destruction
CVE-2025-38174 8.8 HIGH thunderbolt: Do not double dequeue a configuration request
CVE-2025-38216 8.8 HIGH iommu/vt-d: Restore context entry setup order for aliased devices
CVE-2025-38189 7.8 HIGH drm/v3d: Avoid NULL pointer dereference in `v3d_job_update_stats()`
CVE-2025-38234 7.8 HIGH sched/rt: Fix race in push_rt_task
CVE-2025-38180 7.8 HIGH net: atm: fix /proc/net/atm/lec handling
CVE-2025-38187 7.8 HIGH drm/nouveau: fix a use-after-free in r535_gsp_rpc_push()
CVE-2025-38193 7.8 HIGH net_sched: sch_sfq: reject invalid perturb period
CVE-2025-38192 7.8 HIGH net: clear the dst when changing skb protocol
CVE-2025-38204 7.8 HIGH jfs: fix array-index-out-of-bounds read in add_missing_indices
CVE-2025-38206 7.8 HIGH exfat: fix double free in delayed_free
CVE-2025-38212 7.8 HIGH ipc: fix to protect IPCS lookups using RCU
CVE-2025-38218 7.8 HIGH f2fs: fix to do sanity check on sit_bitmap_size
CVE-2025-38226 7.8 HIGH media: vivid: Change the siize of the composing
CVE-2025-38227 7.8 HIGH media: vidtv: Terminating the subsequent process of initialization failure
CVE-2025-38230 7.8 HIGH jfs: validate AG parameters in dbMount() to prevent crashes
CVE-2025-38233 7.8 HIGH powerpc64/ftrace: fix clobbered r15 during livepatching
CVE-2025-38232 7.8 HIGH NFSD: fix race between nfsd registration and exports_proc
CVE-2025-38175 7.8 HIGH binder: fix yet another UAF in binder_devices

Showing top 20 of 59 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38224

No comments yet


Leave a comment