Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38224

published high CVSS 3.1 · 7.8

can: kvaser_pciefd: refine error prone echo_skb_max handling logic

Published
04 Jul 2025, 13:37:39 UTC
Updated
05 Aug 2026, 12:00:27 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux352fbde14177d608a54120b6ff559ce5b3cf6238 to < d8a054b6e6824a8b52c3977ebd38c9583a63efac · 8256e0ca601051933e9395746817f3801fa9a6bf to < a6550c9aa11e2f57f9cdaa6249cdd44d446be874 · 8256e0ca601051933e9395746817f3801fa9a6bf to < 54ec8b08216f3be2cc98b33633d3c8ea79749895 · f14512f3ee09cda986191c8dd7f54972afa2c763 · 6.12.31 to < 6.12.35 · 6.14.9 to < 6.15 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.12.35 through 6.12.* (unaffected · semver) · 6.15.4 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-16 cluster-md-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 cluster-md-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 dlm-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 dlm-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 dlm-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 gfs2-kmp-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21179-1
SUSE / openSUSE SLE-16 kernelaarch64 Advisory build 64kb-6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernelaarch64 Advisory build 64kb-devel-6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernelaarch64 Advisory build 64kb-extra-6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-64kbaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-64kb-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-64kb-extraaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaultaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaultaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaultppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaults390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-defaultx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-baseaarch64 Advisory build 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-baseppc64le Advisory build 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-basex86_64 Advisory build 6.12.0-160000.6.1.160000.2.4 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-devels390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-devels390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extraaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extraaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extrappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extrappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extras390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extras390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-extrax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-extrax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-livepatchppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-livepatchppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-livepatchs390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-livepatchs390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-livepatchx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-livepatchx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-default-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-default-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-develnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-develnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-docsnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-docsnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-docs-htmlnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-docs-htmlnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmallaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmallaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmallppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmallppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmallx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmallx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develppc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-develx86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-kvmsmall-vdsox86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-macrosnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-macrosnoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qaaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qaaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qappc64le Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qas390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qas390x Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-obs-qax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-obs-qax86_64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-sourcenoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-sourcenoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-source-vanillanoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1
SUSE / openSUSE SLE-16 kernel-source-vanillanoarch Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:21139-1
SUSE / openSUSE SLE-16 kernel-symsaarch64 Advisory build 6.12.0-160000.6.1 SUSE-SU-2025:20994-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

11

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The out-of-bounds index is derived from the driver's own monotonically increasing `tx_idx` transmit counter, so it is reached by locally transmitting CAN frames via an AF_CAN socket (`socket`/`bind`/`sendmsg`) on the kvaser_pciefd netdev. Data received from the CAN bus never indexes `echo_skb[]`, so no adjacent/network attacker controls the offset. AC:L - The overflow is fully deterministic — `seq = tx_idx & 31` against a 17-entry array means the 18th frame sent lands out of bounds, with no race to win and no memory-layout condition needed to trigger it. Real Kvaser PCIe FD cards report a TX FIFO depth that makes `tx_max_count == 17`, which is exactly the case that rounds up to 32. PR:L - `can_create()` in net/can/af_can.c and `raw_sendmsg()` in net/can/raw.c contain no capability checks (only net/can/gw.c gates on CAP_NET_ADMIN), so any unprivileged local user can open a CAN_RAW socket and transmit. The interface being up is the normal operational state of a system fitted with a Kvaser CAN card, not an attacker-supplied precondition. UI:N - The attacker triggers the overflow entirely on their own by writing frames to a CAN socket; no victim action, mount, or file open is involved. S:U - The heap corruption occurs in kernel memory and is exploited within the same kernel security authority, with no crossing of a VM, IOMMU, or sandbox boundary. C:H - KASAN confirmed a slab-out-of-bounds *read* of 8 bytes at `can->can.echo_skb[echo_idx]` beyond the end of the `net_device`+priv allocation; that adjacent-heap value is then treated as an `sk_buff *` and passed through `can_skb_ext_find()`/`netif_rx()`, exposing neighbouring kernel heap contents and enabling further disclosure. I:H - Indices 17–31 write past the end of the whole `kvzalloc_flex()` netdev allocation — a NULL store from `start_xmit()`, a live `sk_buff` pointer store from `can_put_echo_skb()`, and another NULL store from `__can_get_echo_skb()` — giving a controlled-offset out-of-bounds write into adjacent slab objects that is leverageable for control-flow hijacking. A:H - The out-of-bounds access is a KASAN-reported slab overflow reached from hard IRQ context; treating adjacent heap data as an `sk_buff` and passing it to `netif_rx()`/`dev_kfree_skb_any()` reliably produces an oops or panic, and a vmalloc-backed netdev allocation hits a guard page outright.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 352fbde14177d608a54120b6ff559ce5b3cf6238 to < d8a054b6e6824a8b52c3977ebd38c9583a63efac (affected · git)8256e0ca601051933e9395746817f3801fa9a6bf to < a6550c9aa11e2f57f9cdaa6249cdd44d446be874 (affected · git)8256e0ca601051933e9395746817f3801fa9a6bf to < 54ec8b08216f3be2cc98b33633d3c8ea79749895 (affected · git)f14512f3ee09cda986191c8dd7f54972afa2c763 (affected · git)6.12.31 to < 6.12.35 (affected · semver)6.14.9 to < 6.15 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.15 (affected)0 to < 6.15 (unaffected · semver)6.12.35 through 6.12.* (unaffected · semver)6.15.4 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

can: kvaser_pciefd: refine error prone echo_skb_max handling logic

Provenance

Schema
5.2
Searchable
yes
Content hash
1982657a35e1786dff4ea6d0326c3eb6dd1f38fb4de91b7addde1f593aafb3c6
Ingested
23 Sep 2026, 08:46:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected