# CVE-2025-68262: crypto: zstd - fix double-free in per-CPU stream cleanup

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T14:45:04.198Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< dc0f4509b0ed5d82bef78e058db0ac4df04d0695; \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< e983feaa79de1e46c9087fb9f02fedb0e5397ce6; \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< 48bc9da3c97c15f1ea24934bcb3b736acd30163d
- Anyone running Linux 6.17

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: zstd - fix double-free in per-CPU stream cleanup

The crypto/zstd module has a double-free bug that occurs when multiple
tfms are allocated and freed.

The issue happens because zstd\_streams (per-CPU contexts) are freed in
zstd\_exit() during every tfm destruction, rather than being managed at
the module level.  When multiple tfms exist, each tfm exit attempts to
free the same shared per-CPU streams, resulting in a double-free.

This leads to a stack trace similar to:

  BUG: Bad page state in process kworker/u16:1  pfn:106fd93
  page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106fd93
  flags: 0x17ffffc0000000(node=0\|zone=2\|lastcpupid=0x1fffff)
  page\_type: 0xffffffff()
  raw: 0017ffffc0000000 dead000000000100 dead000000000122 0000000000000000
  raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
  page dumped because: nonzero entire\_mapcount
  Modules linked in: ...
  CPU: 3 UID: 0 PID: 2506 Comm: kworker/u16:1 Kdump: loaded Tainted: G    B
  Hardware name: ...
  Workqueue: btrfs-delalloc btrfs\_work\_helper
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x5d/0x80
   bad\_page+0x71/0xd0
   free\_unref\_page\_prepare+0x24e/0x490
   free\_unref\_page+0x60/0x170
   crypto\_acomp\_free\_streams+0x5d/0xc0
   crypto\_acomp\_exit\_tfm+0x23/0x50
   crypto\_destroy\_tfm+0x60/0xc0
   ...

Change the lifecycle management of zstd\_streams to free the streams only
once during module cleanup.

## Affected and fixed versions

- Linux: \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< dc0f4509b0ed5d82bef78e058db0ac4df04d0695; \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< e983feaa79de1e46c9087fb9f02fedb0e5397ce6; \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< 48bc9da3c97c15f1ea24934bcb3b736acd30163d (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 48bc9da3c97c15f1ea24934bcb3b736acd30163d or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68262.md
Affected: Linux >= f5ad93ffb54119a8dc5e18f070624d4ead586969, < dc0f4509b0ed5d82bef78e058db0ac4df04d0695; >= f5ad93ffb54119a8dc5e18f070624d4ead586969, < e983feaa79de1e46c9087fb9f02fedb0e5397ce6; >= f5ad93ffb54119a8dc5e18f070624d4ead586969, < 48bc9da3c97c15f1ea24934bcb3b736acd30163d; Linux 6.17
Fixed in: Linux 48bc9da3c97c15f1ea24934bcb3b736acd30163d

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-68262 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< dc0f4509b0ed5d82bef78e058db0ac4df04d0695; \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< e983feaa79de1e46c9087fb9f02fedb0e5397ce6; \>= f5ad93ffb54119a8dc5e18f070624d4ead586969, \< 48bc9da3c97c15f1ea24934bcb3b736acd30163d; Linux 6.17.

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

Yes. Fixed in Linux 48bc9da3c97c15f1ea24934bcb3b736acd30163d. Upgrade Linux to 48bc9da3c97c15f1ea24934bcb3b736acd30163d or later.

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

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

- other: <https://git.kernel.org/stable/c/dc0f4509b0ed5d82bef78e058db0ac4df04d0695>
- other: <https://git.kernel.org/stable/c/e983feaa79de1e46c9087fb9f02fedb0e5397ce6>
- other: <https://git.kernel.org/stable/c/48bc9da3c97c15f1ea24934bcb3b736acd30163d>

## 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-68262>

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