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

Published Dec 16, 2025
·
Updated

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 zstdstreams (per-CPU contexts) are freed in zstdexit() 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) pagetype: 0xffffffff() raw: 0017ffffc0000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: nonzero entiremapcount Modules linked in: ... CPU: 3 UID: 0 PID: 2506 Comm: kworker/u16:1 Kdump: loaded Tainted: G B Hardware name: ... Workqueue: btrfs-delalloc btrfsworkhelper Call Trace: <TASK> dumpstacklvl+0x5d/0x80 badpage+0x71/0xd0 freeunrefpageprepare+0x24e/0x490 freeunrefpage+0x60/0x170 cryptoacompfreestreams+0x5d/0xc0 cryptoacompexittfm+0x23/0x50 cryptodestroytfm+0x60/0xc0 ...

Change the lifecycle management of zstdstreams to free the streams only once during module cleanup.

Affected Software

1 affected component
linux/kernel

Event History

Dec 16, 2025
CVE Published
via MITRE·02:45 PM
Data Sourced
via MITRE·02:45 PM
Description
Data Sourced
via NVD·03:15 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-68262?

CVE-2025-68262 is categorized as a moderate severity vulnerability due to the potential for double-free leading to memory corruption.

2

How do I fix CVE-2025-68262?

To resolve CVE-2025-68262, update your Linux kernel to the latest version where the zstd double-free bug has been addressed.

3

What software is affected by CVE-2025-68262?

CVE-2025-68262 affects the Linux kernel, specifically the crypto/zstd module.

4

What are the consequences of exploiting CVE-2025-68262?

Exploiting CVE-2025-68262 can lead to unintended memory access, which may compromise system stability and security.

5

When was CVE-2025-68262 disclosed?

CVE-2025-68262 was disclosed in 2025 as part of an update addressing several vulnerabilities in the Linux kernel.

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