PT-2026-162661

CVE-2026-100092

·

تاريخ النشر

2026-11-30

·

تاريخ التحديث

2026-11-30

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾