CVE-2023-53149

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53149
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53149.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53149
Downstream
Published
2025-09-15T14:15:37Z
Modified
2025-09-15T19:00:18Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

ext4: avoid deadlock in fs reclaim with page writeback

Ext4 has a filesystem wide lock protecting ext4_writepages() calls to avoid races with switching of journalled data flag or inode format. This lock can however cause a deadlock like:

CPU0 CPU1

ext4writepages() percpudownread(sbi->swritepagesrwsem); ext4changeinodejournalflag() percpudownwrite(sbi->swritepagesrwsem); - blocks, all readers block from now on ext4dowritepages() ext4initioend() kmemcachezalloc(ioendcachep, GFPKERNEL) fsreclaim frees dentry... dentryunlinkinode() iput() - last ref => iputfinal() - inode dirty => writeinodenow()... ext4writepages() tries to acquire sbi->swritepagesrwsem and blocks forever

Make sure we cannot recurse into filesystem reclaim from writeback code to avoid the deadlock.

References

Affected packages