ext4: fix circular lock dependency in ext4_ext_migrate
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f204882d5eaca09f7848f081c9c9b5bbf2234895, Kernel 4.15, Kernel 4.20 and 13 more.
In the Linux kernel, the following vulnerability has been resolved: ext4: fix circular lock dependency in ext4_ext_migrate Move iput(tmp_inode) after ext4_writepages_up_write() to avoid a circular lock dependency between s_writepages_rwsem and sb_internal (freeze protection). The deadlock scenario: CPU0 (EXT4_IOC_MIGRATE) CPU1 (orphan cleanup during mount) ---- ---- ext4_ext_migrate() ext4_writepages_down_write() s_writepages_rwsem (write) ext4_evict_inode() sb_start_intwrite() [sb_internal] ... ext4_writepages() s_writepages_rwsem (read) [BLOCKED] iput(tmp_inode) ext4_evict_inode() sb_start_intwrite() [BLOCKED] The tmp_inode is a temporary inode with nlink=0 created solely for building the extent tree. Its eviction does not require s_writepages_rwsem protection, so deferring iput() until after releasing the rwsem is safe.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=cb85f4d23f794e24127f3e562cb3b54b0803f456 <f204882d5eaca09f7848f081c9c9b5bbf2234895, >=4.14.172 <4.15, >=4.19.107 <4.20, >=4.9.215 <4.10, >=5.4.23 <5.5, >=5.5.7 <5.6, >=cb85f4d23f794e24127f3e562cb3b54b0803f456 <32f7ab52875ec7f800ca67e7176e5743a84baddf, >=cb85f4d23f794e24127f3e562cb3b54b0803f456 <452950461241dfed8b1d32e94b227db38c99c5af, >=cb85f4d23f794e24127f3e562cb3b54b0803f456 <a897682793eba5de51ee6f3152760374afa629cf, >=cb85f4d23f794e24127f3e562cb3b54b0803f456 <ada23457d4748d6e9c36c6f871fc29a6f558c48c, >=cb85f4d23f794e24127f3e562cb3b54b0803f456 <e4223231b6860141813637a6413c2371ae4d6fa8, =5.6, =69f8a7991fd93c49096ddd11574db3e7df238b7b, =8cf20fb73e73a4c4df0328b5297842c5ef34fdd9, =bcc1eab71a67c46b9e24544ac7923f44444174ce, =e5d25003d059649e18a249635ed5ca7a7b1de5ad, =eb799e163dc2bc1ea0a4820b66f79d32a5e907df | f204882d5eaca09f7848f081c9c9b5bbf2234895, 4.15, 4.20, 4.10, 5.5, 5.6, 32f7ab52875ec7f800ca67e7176e5743a84baddf, 452950461241dfed8b1d32e94b227db38c99c5af, a897682793eba5de51ee6f3152760374afa629cf, ada23457d4748d6e9c36c6f871fc29a6f558c48c, e4223231b6860141813637a6413c2371ae4d6fa8 |
| linux-kernel: Kernel | >=4.19.107 <4.20, >=4.9.215 <4.10, >=5.4.23 <5.5, >=5.5.7 <5.6, >=5.6.0 <6.1.191, >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=4.14.172 <4.15 | 4.20, 4.10, 5.5, 5.6, 6.1.191, 6.18.52, 7.2.6, 6.6.157, 6.12.110, 4.15 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket