f2fs read completion may sleep in atomic context in Linux kernel
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel f2fs filesystem decides in f2fs_read_end_io() whether it can sleep by checking only in_task() and irqs_disabled(), which misses spinlocks, BH disabled sections, RCU read locks and kernels without preempt count. The affected ranges are from 6.1.148 before 6.1.193, from 6.6.102 before 6.6.163, from 6.12.42 before 6.12.118, from 6.15.10 before 6.16, from 6.16.1 before 6.17, and from 6.17. In these contexts, freeing decompression memory or caching compressed pages can sleep, which triggers a sleeping function called from invalid context issue.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to use bio_in_atomic() in f2fs_read_end_io() f2fs_read_end_io() uses "in_task() && !irqs_disabled()" to decide whether it is safe to sleep, the result is passed down as @in_task to: - f2fs_put_dic() -> f2fs_free_dic() -> f2fs_release_decomp_mem() -> vm_unmap_ram(), which may sleep. - f2fs_end_read_compressed_page() -> f2fs_cache_compressed_page() -> f2fs_grab_cache() -> f2fs_lock_cache(), which may sleep in wait_on_bit_lock(). However, the check still treats below task contexts as sleepable: - with spinlock held via spin_lock(), i.e. preempt count != 0 while irqs are enabled. - with BH disabled via local_bh_disable(). - inside an RCU read lock on kernels with CONFIG_PREEMPTION. - with any spinlock held on kernels without CONFIG_PREEMPT_COUNT. So the "sleeping function called from invalid context" issue fixed by commit 08a7efc5b02a ("f2fs: vm_unmap_ram() may be called from an invalid context") can still be triggered. The block layer provides bio_in_atomic() for exactly this purpose, it checks rcu_preempt_depth() and preemptible(), and conservatively returns true if CONFIG_PREEMPT_COUNT is disabled, let's use it instead. The difference is as below: old: intask = in_task() && !irqs_disabled() new: intask = !bio_in_atomic() Context | old intask | new intask -------------------------------------+----------------+---------------- Hard IRQ / softirq | false | false IRQs disabled | false | false spin_lock() held, IRQs enabled | true (wrong) | false BH disabled by local_bh_disable() | true (wrong) | false RCU read lock (CONFIG_PREEMPTION) | true (wrong) | false Spinlock held, w/o PREEMPT_COUNT | true (wrong) | false Note that on kernels without CONFIG_PREEMPT_COUNT, bio_in_atomic() always returns true, so dic freeing will always be offloaded to sbi->wq, and compressed pages will not be cached in f2fs_read_end_io(); this is the price of correctness, since there is no way to tell whether the current context can sleep.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 6.1.148 to before 6.1.193; 6.6.102 to before 6.6.163; 6.12.42 to before 6.12.118; 6.15.10 to before 6.16; 6.16.1 to before 6.17 | 6.1.193, 6.6.163, 6.12.118, 6.16, 6.17 | Patch available | CNA |
| Linux | Linux | 6.17 and later | 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 6.1.148 to before 6.1.193; 6.6.102 to before 6.6.163; 6.12.42 to before 6.12.118; 6.15.10 to before 6.16; 6.16.1 to before 6.17 Fixed in 6.1.193, 6.6.163, 6.12.118, 6.16, 6.17 Patch available CNA
- Linux VendorLinux Affected 6.17 and later Fixed in 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, 7.4-rc1 Patch available CNA
Remediation
The fixed Linux kernel versions are 6.1.193, 6.6.163, 6.12.118, 6.16, 6.17, 6.18.64, 7.3.4 and 7.4-rc1. The sources list no advisory identifiers for these fixes.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 6.1.193, 6.6.163, 6.12.118, 6.16, 6.17
- Fix · CNA Linux (Linux) Fixed in 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-30 Threatist record created from CVE-2026-100092
- 2026-11-30 Alias added: GHSA-8g7v-rhv6-xjc9
- 2026-12-01 Affected versions changed · Red Hat
- 2026-12-01 CVSS score added · Red Hat
References
Other 6
- https://git.kernel.org/stable/c/e08cb38f91a8f7cc4a6f96dfb0c3a4958a2227a6
- https://git.kernel.org/stable/c/4dd9b48ee2eb23d524d76cab670090fda5ae7bb7
- https://git.kernel.org/stable/c/974a545e94e7b3c101ee1aaa9e0672655c94b598
- https://git.kernel.org/stable/c/b7b1a54e3e1ade64a81a44d19e16cb76185d60b0
- https://git.kernel.org/stable/c/f0abf244bcbb361b0d00a2ae4606294694c0e424
- https://git.kernel.org/stable/c/a605d5d71a6d280c43c7ede9778dda63fb5c3f22
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-100092 · CVE Program
- CVE-2026-100092 · NVD
- GHSA-8g7v-rhv6-xjc9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-100092 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences