CVE-2025-38665: can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode

Published Aug 22, 2025
·
Updated

can: netlink: canchangelink(): fix NULL pointer deref of struct canpriv::dosetmode

Affected Software

15 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=2.6.31<6.1.148
Linux Linux kernel>=6.2<6.6.101
Linux Linux kernel>=6.7<6.12.41
Linux Linux kernel>=6.13<6.15.9
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3
Linux Linux kernel=6.16-rc4
Linux Linux kernel=6.16-rc5
Linux Linux kernel=6.16-rc6
Linux Linux kernel=6.16-rc7
Debian Debian Linux=11.0
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.96.2-2<6.6.104.2-1
6.6.104.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.104.2-1
  2. Configuration

    Update the Linux kernel CAN netlink code so that automatic restart delay after Bus Off is configured in can_changelink(), and that any failure (e.g., manual restart being refused because can_priv::do_set_mode is not set) is reported to user space via extack.

    Linux kernel CAN netlink (can_changelink) automatic restart delay after Bus Off = configure the delay in can_changelink() and report errors via extack to user space
  3. Configuration

    Modify can_changelink() to refuse a manual restart when struct can_priv::do_set_mode is not set, instead of dereferencing it, preventing the NULL pointer dereference.

    Linux kernel CAN netlink (can_changelink) manual restart handling when can_priv::do_set_mode is NULL = refuse manual restart if can_priv::do_set_mode is not set

Event History

Aug 22, 2025
CVE Published
via MITRE·04:02 PM
Data Sourced
via MITRE·04:02 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 3, 2025
Data Sourced
via Microsoft·10:16 PM
DescriptionSeverityWeaknessAffected Software
Sep 4, 2025
Updated
via Microsoft·05:16 AM
DescriptionSeverity
Updated
via Microsoft·05:16 AM
SeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38665?

CVE-2025-38665 has been classified as a high severity vulnerability due to the potential for a NULL pointer dereference.

2

How do I fix CVE-2025-38665?

To fix CVE-2025-38665, ensure your Linux kernel is updated to the latest version where this vulnerability has been patched.

3

Which systems are affected by CVE-2025-38665?

CVE-2025-38665 affects systems running versions of the Linux kernel that handle CAN devices.

4

What type of vulnerability is CVE-2025-38665?

CVE-2025-38665 is a NULL pointer dereference vulnerability affecting the CAN protocol implementation in the Linux kernel.

5

When was CVE-2025-38665 reported?

CVE-2025-38665 was reported by researcher Andrei Lalaev.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203