{"id":"CVE-2026-100092","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:17:27.533","lastModified":"2026-11-30T14:17:27.533","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix to use bio_in_atomic() in f2fs_read_end_io()\n\nf2fs_read_end_io() uses \"in_task() && !irqs_disabled()\" to decide\nwhether it is safe to sleep, the result is passed down as @in_task to:\n- f2fs_put_dic() -> f2fs_free_dic() -> f2fs_release_decomp_mem()\n  -> vm_unmap_ram(), which may sleep.\n- f2fs_end_read_compressed_page() -> f2fs_cache_compressed_page()\n  -> f2fs_grab_cache() -> f2fs_lock_cache(), which may sleep in\n  wait_on_bit_lock().\n\nHowever, the check still treats below task contexts as sleepable:\n- with spinlock held via spin_lock(), i.e. preempt count != 0 while\n  irqs are enabled.\n- with BH disabled via local_bh_disable().\n- inside an RCU read lock on kernels with CONFIG_PREEMPTION.\n- with any spinlock held on kernels without CONFIG_PREEMPT_COUNT.\n\nSo the \"sleeping function called from invalid context\" issue fixed by\ncommit 08a7efc5b02a (\"f2fs: vm_unmap_ram() may be called from an\ninvalid context\") can still be triggered.\n\nThe block layer provides bio_in_atomic() for exactly this purpose, it\nchecks rcu_preempt_depth() and preemptible(), and conservatively returns\ntrue if CONFIG_PREEMPT_COUNT is disabled, let's use it instead. The\ndifference is as below:\n\n old: intask = in_task() && !irqs_disabled()\n new: intask = !bio_in_atomic()\n\n Context                              | old intask     | new intask\n -------------------------------------+----------------+----------------\n Hard IRQ / softirq                   | false          | false\n IRQs disabled                        | false          | false\n spin_lock() held, IRQs enabled       | true (wrong)   | false\n BH disabled by local_bh_disable()    | true (wrong)   | false\n RCU read lock (CONFIG_PREEMPTION)    | true (wrong)   | false\n Spinlock held, w/o PREEMPT_COUNT     | true (wrong)   | false\n\nNote that on kernels without CONFIG_PREEMPT_COUNT, bio_in_atomic()\nalways returns true, so dic freeing will always be offloaded to sbi->wq,\nand compressed pages will not be cached in f2fs_read_end_io(); this is\nthe price of correctness, since there is no way to tell whether the\ncurrent context can sleep."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/f2fs/data.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"eb69e69a5ae6c8350957893b5f68bd55b1565fb2","lessThan":"e08cb38f91a8f7cc4a6f96dfb0c3a4958a2227a6","versionType":"git","status":"affected"},{"version":"1023836d1b9465593c8746f97d608da32958785f","lessThan":"4dd9b48ee2eb23d524d76cab670090fda5ae7bb7","versionType":"git","status":"affected"},{"version":"0fe7976b62546f1e95eebfe9879925e9aa22b7a8","lessThan":"974a545e94e7b3c101ee1aaa9e0672655c94b598","versionType":"git","status":"affected"},{"version":"08a7efc5b02a0620ae16aa9584060e980a69cb55","lessThan":"b7b1a54e3e1ade64a81a44d19e16cb76185d60b0","versionType":"git","status":"affected"},{"version":"08a7efc5b02a0620ae16aa9584060e980a69cb55","lessThan":"f0abf244bcbb361b0d00a2ae4606294694c0e424","versionType":"git","status":"affected"},{"version":"08a7efc5b02a0620ae16aa9584060e980a69cb55","lessThan":"a605d5d71a6d280c43c7ede9778dda63fb5c3f22","versionType":"git","status":"affected"},{"version":"411e00f44e2e1a7fdb526013b25a7f0ed22a0947","versionType":"git","status":"affected"},{"version":"18eea36f4f460ead3750ed4afe5496f7ce55f99e","versionType":"git","status":"affected"},{"version":"6.1.148","lessThan":"6.1.193","versionType":"semver","status":"affected"},{"version":"6.6.102","lessThan":"6.6.163","versionType":"semver","status":"affected"},{"version":"6.12.42","lessThan":"6.12.118","versionType":"semver","status":"affected"},{"version":"6.15.10","lessThan":"6.16","versionType":"semver","status":"affected"},{"version":"6.16.1","lessThan":"6.17","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/f2fs/data.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.17","status":"affected"},{"version":"0","lessThan":"6.17","versionType":"semver","status":"unaffected"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/4dd9b48ee2eb23d524d76cab670090fda5ae7bb7","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/974a545e94e7b3c101ee1aaa9e0672655c94b598","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a605d5d71a6d280c43c7ede9778dda63fb5c3f22","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b7b1a54e3e1ade64a81a44d19e16cb76185d60b0","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e08cb38f91a8f7cc4a6f96dfb0c3a4958a2227a6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f0abf244bcbb361b0d00a2ae4606294694c0e424","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}