medium · CVSS v3 5.5
CVE-2026-98079
This CVE affects the Linux kernel’s Btrfs filesystem when using Zstandard compression. A bug in workspace allocation can cause a writer thre
Overview
This CVE affects the Linux kernel’s Btrfs filesystem when using Zstandard compression. A bug in workspace allocation can cause a writer thread to sleep indefinitely, potentially blocking I/O operations. The issue is limited to kernel code and does not involve user input directly.
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: zstd: fix lost wakeup when waiting for a workspace A writer can sleep forever in zstd_get_workspace() even though a workspace is free. When zstd_alloc_workspace() fails, the task is queued on zwsm->wait and schedules unconditionally, never re-testing the pool. zstd_put_workspace() publishes the workspace and then calls cond_wake_up(), which only wakes when a sleeper is already visible, so a workspace returned between the failed allocation and prepare_to_wait() wakes nobody. The window is wide: zstd_alloc_workspace() goes through kvmalloc() and may enter reclaim. Only a max level workspace triggers the wakeup and one is deliberately kept allocated as the fallback every waiter waits for, so once its wakeup is lost the writer stays in TASK_UNINTERRUPTIBLE until some other task happens to return one. Re-check the pool after prepare_to_wait() has published the waiter, and use the workspace if one turned up.
Impact
Confidentiality: none. Integrity: potential denial of service due to blocked writes. Availability: affected systems may experience stalled I/O, impacting performance and reliability. Defenders: kernel maintainers and system administrators.
Remediation
Apply the latest kernel update that includes the fix for CVE-2026-98079. If an update is not possible, disable Btrfs Zstandard compression or remount filesystems without compression. Monitor kernel logs for 'zstd_get_workspace' errors and ensure no long sleeps.
Risk context
Medium severity, CVSS 5.5, no EPSS data. While not critical, the potential for indefinite blocking warrants timely patching, especially on systems with high I/O workloads.
Affected products
- Linux kernel
- Btrfs
- Ubuntu
- Fedora
- RedHat
- Debian
- CentOS
- OpenSUSE
Scores
- Severity
- medium
- CVSS v2
- 5.6
- CVSS v3
- 5.5
- CVSS v4
- —
- EPSS
- —