Skip to main content

Linux Kernel CVE-2025-39985

HIGH
2025-10-15 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local CAP_NET_ADMIN over mcba_usb interface
  2. Delivery
    Set can0 MTU above CAN_MTU (9999)
  3. Exploit
    Open PF_PACKET raw ETH_P_CANXL socket
  4. Execution
    Inject CAN XL frame with flags=0xff
  5. Persist
    Driver misreads len, memcpy overflows buffer
  6. Impact
    Kernel memory corruption / DoS or privilege escalation

Vulnerability Assessment

Exploitation Conditions

Exploitation requires: (1) a target system with the mcba_usb driver bound to a Microchip CAN BUS Analyzer USB interface (a CAN netdev such as can0 must exist); (2) the ability to raise that interface's MTU above CAN_MTU via 'ip link set ... mtu', which needs CAP_NET_ADMIN (obtainable by root or within a suitably privileged user namespace); and (3) the ability to open a PF_PACKET SOCK_RAW socket with the ETH_P_CANXL protocol to inject a crafted CAN XL frame (flags=0xff). Limiting factors: this is local-only (AV:L) with no remote or network path, requires the specific vulnerable hardware/driver to be present, and requires the CAP_NET_ADMIN capability to change the MTU - it is not exploitable against a default configuration lacking the mcba_usb interface or by a fully unprivileged user without that capability.

Impact

The signals are internally consistent toward a moderate-but-real local risk. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 7.8 High) indicates local access with low complexity and some privilege, no user interaction, and full CIA impact within the kernel - consistent with the description, which requires the ability to change an interface MTU. Note that setting an interface MTU requires CAP_NET_ADMIN, so PR:L reflects a privileged (or user-namespace-capable) actor rather than a fully unprivileged one - the low-privilege rating is defensible only if the attacker holds CAP_NET_ADMIN, possibly within a user namespace, over an mcba_usb interface. EPSS is low (0.22%, 13th percentile) and there is no KEV listing and no packaged public exploit, so this is not evidence of widespread active exploitation; it is a targeted, capability- and hardware-gated local memory-corruption bug rather than an internet-facing mass-exploitation threat. The practical limiter is significant: the vulnerable mcba_usb interface (and typically the physical Microchip CAN-USB adapter) must be present and the attacker must be able to reconfigure it, which sharply narrows real-world exposure despite the High base score.

Exploit ScenarioDerived

A local attacker holding CAP_NET_ADMIN (potentially via a user namespace) over a system with an mcba_usb CAN interface runs 'ip link set can0 mtu 9999', then opens a PF_PACKET raw socket with ETH_P_CANXL and injects a CAN XL frame with flags=0xff and len=2048. The driver misreads the flags byte as an 8-byte-max classic-CAN length and memcpy overflows the usb_msg.data buffer by up to 247 bytes, corrupting kernel memory for denial of service or potential privilege escalation. No packaged public exploit is identified, but the advisory itself provides a working reproduction sequence.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege-holders can trigger a kernel heap buffer overflow in the Linux mcba_usb CAN driver (Microchip CAN BUS Analyzer USB adapter) by raising the interface MTU beyond CAN_MTU and injecting a crafted CAN XL frame through a PF_PACKET raw socket. Because the driver never implemented ndo_change_mtu(), an attacker can set an oversized MTU (e.g. 9999), then send an ETH_P_CANXL frame whose flags byte is misread as the classic-CAN length field, causing memcpy to copy up to 247 bytes past the intended 8-byte buffer. This is a memory-corruption issue with high confidentiality, integrity and availability impact (CVSS 7.8); there is no public exploit identified at time of analysis, though the advisory includes a detailed reproduction, and EPSS is low at 0.22%.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - the correction populates net_device_ops->ndo_change_mtu() so the mcba_usb interface MTU can no longer be set above CAN_MTU, eliminating the root cause. Apply your distribution's kernel update that incorporates the relevant git.kernel.org stable commits (e.g. https://git.kernel.org/stable/c/17c8d794527f01def0d1c8b7dc2d7b8d34fed0e6, https://git.kernel.org/stable/c/0fa9303c4b9493727e0d3a6ac3729300e3013930, and the additional six referenced commits) and match the commit to the stable branch you run. As compensating controls until patched: unload/blacklist the mcba_usb module if the Microchip CAN-USB adapter is not needed (side effect: the CAN dongle stops working); restrict CAP_NET_ADMIN and avoid granting unprivileged user namespaces that could obtain CAP_NET_ADMIN over CAN interfaces (side effect: may break container networking or unprivileged network management); and prevent unprivileged access to PF_PACKET raw sockets where feasible (side effect: can break legitimate packet-capture and low-level networking tools).

Affected ProductsAI

The affected product is the Linux kernel, specifically the mcba_usb CAN network driver (drivers/net/can/usb/mcba_usb.c) for the Microchip CAN BUS Analyzer USB device. The input does not provide explicit fixed version numbers or CPE strings; affected versions are all kernel releases carrying the mcba_usb driver prior to the fix. The upstream fix is distributed across multiple stable-tree commits published on git.kernel.org (e.g. https://git.kernel.org/stable/c/17c8d794527f01def0d1c8b7dc2d7b8d34fed0e6 and seven sibling commits), indicating backports to several maintained stable branches; exact affected/fixed release tags are not stated in the provided data and should be confirmed against each distribution's kernel changelog.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw lives in the mcba_usb driver, which bridges Microchip's CAN BUS Analyzer USB dongle to Linux's SocketCAN/CAN networking stack. Sending frames via PF_PACKET (SOCK_RAW) bypasses the higher-level CAN framework and reaches the driver's ndo_start_xmit (mcba_usb_start_xmit) directly; the only validation PF_PACKET performs is that skb->len does not exceed the interface MTU. Normally CAN interfaces are pinned to CAN_MTU (16 bytes for classic CAN), but mcba_usb omitted a net_device_ops->ndo_change_mtu() handler, leaving the generic MTU setter in place so the MTU can be enlarged arbitrarily. A CAN XL frame (ETH_P_CANXL) then survives can_dev_dropped_skb() because that helper checks only protocol validity and a valid CAN XL length, not the device's actual capabilities. The driver then executes 'usb_msg.dlc = cf->len; memcpy(usb_msg.data, cf->data, usb_msg.dlc);' where cf->len is actually the CAN XL flags field (0xff in the PoC), overflowing the fixed 8-byte usb_msg.data buffer. This is a classic out-of-bounds write / buffer overflow (CWE-787/CWE-120 class, though the input lists CWE as N/A) rooted in a missing input-length/MTU validation.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local-only with no UI; needs CAP_NET_ADMIN to change MTU so PR:L, low complexity, and a kernel OOB write yields full C/I/A impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

can: mcba_usb: populate ndo_change_mtu() to prevent buffer overflow

Sending an PF_PACKET allows to bypass the CAN framework logic and to directly reach the xmit() function of a CAN driver. The only check which is performed by the PF_PACKET framework is to make sure that skb->len fits the interface's MTU.

Unfortunately, because the mcba_usb driver does not populate its net_device_ops->ndo_change_mtu(), it is possible for an attacker to configure an invalid MTU by doing, for example:

$ ip link set can0 mtu 9999

After doing so, the attacker could open a PF_PACKET socket using the ETH_P_CANXL protocol:

socket(PF_PACKET, SOCK_RAW, htons(ETH_P_CANXL))

to inject a malicious CAN XL frames. For example:

struct canxl_frame frame = { .flags = 0xff, .len = 2048, };

The CAN drivers' xmit() function are calling can_dev_dropped_skb() to check that the skb is valid, unfortunately under above conditions, the malicious packet is able to go through can_dev_dropped_skb() checks:

  1. the skb->protocol is set to ETH_P_CANXL which is valid (the

function does not check the actual device capabilities).

  1. the length is a valid CAN XL length.

And so, mcba_usb_start_xmit() receives a CAN XL frame which it is not able to correctly handle and will thus misinterpret it as a CAN frame.

This can result in a buffer overflow. The driver will consume cf->len as-is with no further checks on these lines:

usb_msg.dlc = cf->len;

memcpy(usb_msg.data, cf->data, usb_msg.dlc);

Here, cf->len corresponds to the flags field of the CAN XL frame. In our previous example, we set canxl_frame->flags to 0xff. Because the maximum expected length is 8, a buffer overflow of 247 bytes occurs!

Populate net_device_ops->ndo_change_mtu() to ensure that the interface's MTU can not be set to anything bigger than CAN_MTU. By fixing the root cause, this prevents the buffer overflow.

Executive ViewAI

Why It Matters

The Microchip CAN BUS Analyzer USB adapter driver (mcba_usb) on Linux systems is vulnerable to privilege escalation attacks that could compromise system integrity and availability; no public exploit has been identified at time of analysis. Organizations operating CAN-based industrial control systems dependent on this hardware face potential operational disruption and must implement immediate mitigations, as no vendor patch is currently available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Compensating controls: restrict local system access through privilege management controls, disable MTU configuration on CAN interfaces, consider disabling mcba_usb driver on non-critical systems, implement monitoring for exploitation attempts, and document systems requiring this hardware for exception tracking and compensating control documentation.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche Microchip CAN-USB analyzer driver; kernel ubiquitous but this hardware/module rare
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:15.6.17.8.134 Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.0/toolbox:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.65 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.88 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.105 Affected

References

Advisories & patches
ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21040/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21052/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21056/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21064/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21080/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21147/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21180/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4057/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4128/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4132/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4140/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4141/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4301/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20317/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20333/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20561/ REF https://git.kernel.org/stable/c/0fa9303c4b9493727e0d3a6ac3729300e3013930 REF https://git.kernel.org/stable/c/17c8d794527f01def0d1c8b7dc2d7b8d34fed0e6 REF https://git.kernel.org/stable/c/3664ae91b26d1fd7e4cee9cde17301361f4c89d5 REF https://git.kernel.org/stable/c/37aed407496bf6de8910e588edb04d2435fa7011 REF https://git.kernel.org/stable/c/6b9fb82df8868dbe9ffea5874b8d35f951faedbb REF https://git.kernel.org/stable/c/6eec67bfb25637f9b51e584cf59ddace59925bc8 REF https://git.kernel.org/stable/c/b638c3fb0f163e69785ceddb3b434a9437878bec REF https://git.kernel.org/stable/c/ca4e51359608e1f29bf1f2c33c3ddf775b6b7ed1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy