CVE-2025-38665
can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode
Check your servers for CVE-2025-38665
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38665 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode
Andrei Lalaev reported a NULL pointer deref when a CAN device is restarted from Bus Off and the driver does not implement the struct can_priv::do_set_mode callback.
There are 2 code path that call struct can_priv::do_set_mode: - directly by a manual restart from the user space, via can_changelink() - delayed automatic restart after bus off (deactivated by default)
To prevent the NULL pointer deference, refuse a manual restart or configure the automatic restart delay in can_changelink() and report the error via extack to user space.
As an additional safety measure let can_restart() return an error if can_priv::do_set_mode is not set instead of dereferencing it unchecked.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.88% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 39549eef3587f1c1e8c65c88a2400d10fd30ea17, before 6bbcf37c5114926c99a1d1e6993a5b35689d2599 affected from 39549eef3587f1c1e8c65c88a2400d10fd30ea17, before cf81a60a973358dea163f6b14062f17831ceb894 affected from 39549eef3587f1c1e8c65c88a2400d10fd30ea17, before 0ca816a96fdcf32644c80cbe7a82c7b6ce6ddda5 affected from 39549eef3587f1c1e8c65c88a2400d10fd30ea17, before 6acceb46180f9e160d4f0c56fcaf39ba562822ae affected from 39549eef3587f1c1e8c65c88a2400d10fd30ea17, before c1f3f9797c1f44a762e6f5f72520b2e520537b52
Other versions: unaffected
|
| Linux |
affected 2.6.31 unaffected before 2.6.31 unaffected from 6.1.148 up to and including 6.1.* unaffected from 6.6.101 up to and including 6.6.* unaffected from 6.12.41 up to and including 6.12.* unaffected from 6.15.9 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38665 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38665
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38665
trivy image --scanners vuln IMAGE | grep CVE-2025-38665
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/6bbcf37c5114926c99a1d1e6993a5b35689d2599 git.kernel.org
- https://git.kernel.org/stable/c/cf81a60a973358dea163f6b14062f17831ceb894 git.kernel.org
- https://git.kernel.org/stable/c/0ca816a96fdcf32644c80cbe7a82c7b6ce6ddda5 git.kernel.org
- https://git.kernel.org/stable/c/6acceb46180f9e160d4f0c56fcaf39ba562822ae git.kernel.org
- https://git.kernel.org/stable/c/c1f3f9797c1f44a762e6f5f72520b2e520537b52 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
Source: the record CVE-2025-38665 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse