# CVE-2025-39873: can: xilinx\_can: xcan\_write\_frame(): fix use-after-free of transmitted SKB

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-09-23T06:00:46.157Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< e202ffd9e54538ef67ec301ebd6d9da4823466c9; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 1139321161a3ba5e45e61e0738b37f42f20bc57a; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 94b050726288a56a6b8ff55aa641f2fedbd3b44c; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 725b33deebd6e4c96fe7893f384510a54258f28f; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 668cc1e3bb21101d074e430de1b7ba8fd10189e7; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< ef79f00be72bd81d2e1e6f060d83cf7e425deee4
- Anyone running Linux 4.19

## Description

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 after the call.

However, xilinx\_can xcan\_write\_frame() keeps using SKB after the call.

Fix that by only calling can\_put\_echo\_skb() after the code is done
touching the SKB.

The tx\_lock is held for the entire xcan\_write\_frame() execution and
also on the can\_get\_echo\_skb() side so the order of operations does not
matter.

An earlier fix commit 3d3c817c3a40 ("can: xilinx\_can: Fix usage of skb
memory") did not move the can\_put\_echo\_skb() call far enough.

\[mkl: add "commit" in front of sha1 in patch description\]
\[mkl: fix indention\]

## Affected and fixed versions

- Linux: \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< e202ffd9e54538ef67ec301ebd6d9da4823466c9; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 1139321161a3ba5e45e61e0738b37f42f20bc57a; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 94b050726288a56a6b8ff55aa641f2fedbd3b44c; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 725b33deebd6e4c96fe7893f384510a54258f28f; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 668cc1e3bb21101d074e430de1b7ba8fd10189e7; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< ef79f00be72bd81d2e1e6f060d83cf7e425deee4 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39873. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39873.md
Affected: Linux >= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, < e202ffd9e54538ef67ec301ebd6d9da4823466c9; >= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, < 1139321161a3ba5e45e61e0738b37f42f20bc57a; >= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, < 94b050726288a56a6b8ff55aa641f2fedbd3b44c; >= 1598efe57b3e768056e4ca5…
Fixed in: Linux 1139321161a3ba5e45e61e0738b37f42f20bc57a, Linux 94b050726288a56a6b8ff55aa641f2fedbd3b44c, Linux 725b33deebd6e4c96fe7893f384510a54258f28f, Linux 668cc1e3bb21101d074e430de1b7ba8fd10189e7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39873 being exploited?

There is no confirmed exploitation: CVE-2025-39873 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-39873?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39873?

Linux \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< e202ffd9e54538ef67ec301ebd6d9da4823466c9; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 1139321161a3ba5e45e61e0738b37f42f20bc57a; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 94b050726288a56a6b8ff55aa641f2fedbd3b44c; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 725b33deebd6e4c96fe7893f384510a54258f28f; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< 668cc1e3bb21101d074e430de1b7ba8fd10189e7; \>= 1598efe57b3e768056e4ca56cb9cf33111e68d1c, \< ef79f00be72bd81d2e1e6f060d83cf7e425deee4; Linux 4.19.

### Is there a fix for CVE-2025-39873?

Yes. Fixed in Linux 1139321161a3ba5e45e61e0738b37f42f20bc57a, Linux 94b050726288a56a6b8ff55aa641f2fedbd3b44c, Linux 725b33deebd6e4c96fe7893f384510a54258f28f, Linux 668cc1e3bb21101d074e430de1b7ba8fd10189e7. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39873?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e202ffd9e54538ef67ec301ebd6d9da4823466c9>
- patch: <https://git.kernel.org/stable/c/1139321161a3ba5e45e61e0738b37f42f20bc57a>
- patch: <https://git.kernel.org/stable/c/94b050726288a56a6b8ff55aa641f2fedbd3b44c>
- patch: <https://git.kernel.org/stable/c/725b33deebd6e4c96fe7893f384510a54258f28f>
- patch: <https://git.kernel.org/stable/c/668cc1e3bb21101d074e430de1b7ba8fd10189e7>
- patch: <https://git.kernel.org/stable/c/ef79f00be72bd81d2e1e6f060d83cf7e425deee4>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39873>

HTML: <https://flawdb.com/CVE-2025-39873> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39873>
