# CVE-2025-38224: can: kvaser\_pciefd: refine error prone echo\_skb\_max handling logic

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-07-04T13:37:39.305Z
- **Modified:** 2026-08-05T12:00:27.874Z

## Who should check

- Anyone running Linux \>= 352fbde14177d608a54120b6ff559ce5b3cf6238, \< d8a054b6e6824a8b52c3977ebd38c9583a63efac; \>= 8256e0ca601051933e9395746817f3801fa9a6bf, \< a6550c9aa11e2f57f9cdaa6249cdd44d446be874; \>= 8256e0ca601051933e9395746817f3801fa9a6bf, \< 54ec8b08216f3be2cc98b33633d3c8ea79749895; f14512f3ee09cda986191c8dd7f54972afa2c763; \>= 6.12.31, \< 6.12.35; \>= 6.14.9, \< 6.15
- Anyone running Linux 6.15

## 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.

## Affected and fixed versions

- Linux: \>= 352fbde14177d608a54120b6ff559ce5b3cf6238, \< d8a054b6e6824a8b52c3977ebd38c9583a63efac; \>= 8256e0ca601051933e9395746817f3801fa9a6bf, \< a6550c9aa11e2f57f9cdaa6249cdd44d446be874; \>= 8256e0ca601051933e9395746817f3801fa9a6bf, \< 54ec8b08216f3be2cc98b33633d3c8ea79749895; f14512f3ee09cda986191c8dd7f54972afa2c763; \>= 6.12.31, \< 6.12.35; \>= 6.14.9, \< 6.15 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 6.15 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38224. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38224.md
Affected: Linux >= 352fbde14177d608a54120b6ff559ce5b3cf6238, < d8a054b6e6824a8b52c3977ebd38c9583a63efac; >= 8256e0ca601051933e9395746817f3801fa9a6bf, < a6550c9aa11e2f57f9cdaa6249cdd44d446be874; >= 8256e0ca601051933e9395746817f3801fa9a6bf, < 54ec8b08216f3be2cc98b33633d3c8ea79749895; f14512f3ee09cda986191c8dd7…
Fixed in: Linux 54ec8b08216f3be2cc98b33633d3c8ea79749895, Linux 6.12.35, Linux 6.15

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38224 being exploited?

There is no confirmed exploitation: CVE-2025-38224 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38224?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38224?

Linux \>= 352fbde14177d608a54120b6ff559ce5b3cf6238, \< d8a054b6e6824a8b52c3977ebd38c9583a63efac; \>= 8256e0ca601051933e9395746817f3801fa9a6bf, \< a6550c9aa11e2f57f9cdaa6249cdd44d446be874; \>= 8256e0ca601051933e9395746817f3801fa9a6bf, \< 54ec8b08216f3be2cc98b33633d3c8ea79749895; f14512f3ee09cda986191c8dd7f54972afa2c763; \>= 6.12.31, \< 6.12.35; \>= 6.14.9, \< 6.15; Linux 6.15.

### Is there a fix for CVE-2025-38224?

Yes. Fixed in Linux 54ec8b08216f3be2cc98b33633d3c8ea79749895, Linux 6.12.35, Linux 6.15. Upgrade Linux to 6.15 or later.

### How do I check if I'm affected by CVE-2025-38224?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d8a054b6e6824a8b52c3977ebd38c9583a63efac>
- patch: <https://git.kernel.org/stable/c/a6550c9aa11e2f57f9cdaa6249cdd44d446be874>
- patch: <https://git.kernel.org/stable/c/54ec8b08216f3be2cc98b33633d3c8ea79749895>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38224>

HTML: <https://flawdb.com/CVE-2025-38224> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38224>
