Use-After-Free Vulnerability in Linux Kernel's Xilinx CAN Driver
Summary
CVE-2025-39873: In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can: xcan_write_frame(): fix use-after-free of transmitted SKB can_put_echo_skb() takes ownership of the SKB and it may be freed during or a... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is a core component of many operating systems, providing essential services for hardware management, process scheduling, and system security. The Xilinx CAN driver is part of the kernel's Controller Area Network (CAN) subsystem, enabling communication between microcontrollers and devices in automotive and industrial applications. This driver is crucial for ensuring reliable data transmission in real-time systems. However, it is susceptible to vulnerabilities that can compromise system integrity and security.
Vulnerability Detail
In the Linux kernel, a use-after-free vulnerability has been identified in the Xilinx CAN driver, specifically within the xcan_write_frame() function. This issue arises when the function continues to use a socket buffer (SKB) after it has been freed by the can_put_echo_skb() function. The improper handling of memory can lead to unpredictable behavior, including system crashes or exploitation by malicious actors to execute arbitrary code. The vulnerability was introduced due to an earlier fix that did not adequately address the order of operations regarding memory management.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patches as soon as they are released.
Conclusion
The use-after-free vulnerability in the Linux kernel's Xilinx CAN driver poses significant risks to system integrity and security. It is crucial for users to update their systems to the patched versions as soon as possible to mitigate these risks. Regular monitoring and proactive security measures are essential in maintaining a secure environment.
See every vulnerability recorded for linux →
FAQ
A use-after-free vulnerability occurs when a program continues to use a memory resource after it has been freed, potentially leading to memory corruption and security risks.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.
Exploitation of this vulnerability could lead to system crashes, unauthorized access, or execution of arbitrary code, compromising the security and stability of the affected system.
Yes, patches are available for Debian 12 and 13. Ensure you update to the specified patched versions to mitigate the vulnerability.
If immediate updates are not possible, ensure that your system is monitored closely for any unusual activity and consider implementing additional security measures until the patch can be applied.
Related vulnerabilities
Recent vulnerabilities recorded for linux.