PT-2025-42262 · Linux+5 · Linux Kernel+5

Published

2025-10-15

·

Updated

2026-05-27

·

CVE-2025-39987

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A flaw exists in the Linux kernel's CAN (Controller Area Network) subsystem, specifically within the hi311x driver. Sending a PF PACKET can bypass the CAN framework's logic and directly reach the driver's transmit function. A missing check in the ndo change mtu() function allows an attacker to configure an invalid MTU (Maximum Transmission Unit). This, combined with the use of the ETH P CANXL protocol and a crafted CAN XL frame, can lead to a buffer overflow in the hi3110 hw tx() function when copying data using memcpy. The memcpy operation uses the frame length (frame->len) without proper validation, potentially causing a 247-byte overflow when the flags field of the CAN XL frame is set to 0xff. The vulnerable code is located in the hi3110 hw tx() function. The issue arises because the driver does not validate the skb length and the CAN XL frame length, allowing a malicious packet to pass through checks and trigger the buffer overflow.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Buffer Overflow

Missing Authentication

Weakness Enumeration

Related Identifiers

AZL-68516
BDU:2026-02768
BDU:2026-05278
CVE-2025-39987
DLA-4379-1
DLA-4404-1
DSA-6053-1
ECHO-161E-E040-0AEF
GHSA-2679-6MX9-H9XC
MGASA-2025-0309
MGASA-2025-0310
OPENSUSE-SU-2025:20091-1
SUSE-SU-2025:21040-1
SUSE-SU-2025:21052-1
SUSE-SU-2025:21056-1
SUSE-SU-2025:21064-1
SUSE-SU-2025:21080-1
SUSE-SU-2025:21147-1
SUSE-SU-2025:21180-1
SUSE-SU-2025:4057-1
SUSE-SU-2025:4128-1
SUSE-SU-2025:4132-1
SUSE-SU-2025:4140-1
SUSE-SU-2025:4141-1
SUSE-SU-2025:4301-1
USN-8033-1
USN-8033-2
USN-8033-3
USN-8033-4
USN-8033-5
USN-8033-6
USN-8033-7
USN-8033-8
USN-8034-1
USN-8034-2
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8141-1
USN-8163-1
USN-8163-2
USN-8165-1
USN-8243-1
USN-8261-1

Affected Products

Debian
Linuxmint
Linux Kernel
Suse
Ubuntu
Hi311X Driver