In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix potential deadlock in gcmerge path of f2fsbalance_fs()
When we mount device w/ gc_merge mount option, we may suffer below potential deadlock:
Kworker GC trehad Truncator - f2fswritecachepages - f2fswritesingledatapage - f2fsdowritedatapage - foliostartwriteback --- set writeback flag on folio - f2fsoutplacewritedata : cached folio in internal bio cache - f2fsbalancefs - wakeup(gcthread) : wake up gc thread to run foreground GC - finishwait(fggcwq) : wait on the waitqueue --- wait on GC thread to finish the work - truncateinodepages_range - __filemapgetfolio(, FGPLOCK) --- lock folio - truncateinodepartialfolio - foliowaitwriteback --- wait on writeback being cleared - dogarbagecollect - movedatapage - f2fsgetlockdatafolio - lock on folio --- blocked on folio's lock
In order to avoid such deadlock, let's call below functions to commit cached bios in GCMERGE path of f2fsbalancefs() as the same as we did in NOGCMERGE path. - f2fssubmitmergedwrite(sbi, DATA); - f2fssubmitallmergedipuwrites(sbi);
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68459.json",
"cna_assigner": "Linux"
}