erofs: fix use-after-free on sbi->sync_decompress
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.12.94, Kernel 6.18.36, Kernel 7.0.13 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: erofs: fix use-after-free on sbi->sync_decompress z_erofs_decompress_kickoff() can race with filesystem unmount, causing a use-after-free on sbi->sync_decompress. When I/O completes, z_erofs_endio() calls z_erofs_decompress_kickoff() to queue z_erofs_decompressqueue_work() asynchronously. Then, after all folios are unlocked, unmount workflow can proceed and sbi will be freed before accessing to sbi->sync_decompress. Thread (unmount) I/O completion kworker queue_work z_erofs_decompressqueue_work (all folios are unlocked) cleanup_mnt .. erofs_kill_sb erofs_sb_free kfree(sbi) access sbi->sync_decompress // UAF!!
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.17 <6.12.94, >=6.13 <6.18.36, >=6.19 <7.0.13, =7.1, >=40452ffca3c1a0f2994e826f9fa213b107f1a2d4 <1aee05e814d292064bf5fa15733741040cdc48ba, >=40452ffca3c1a0f2994e826f9fa213b107f1a2d4 <5627e57f1da68ff0146896eb3d2eed25e62adc44, >=40452ffca3c1a0f2994e826f9fa213b107f1a2d4 <59db5d8bcc65e04d8598afd81ec3a18edb407470, >=40452ffca3c1a0f2994e826f9fa213b107f1a2d4 <86ab00cf81d44b675bb23db62b88fd76c8ac8cea, >=40452ffca3c1a0f2994e826f9fa213b107f1a2d4 <95caf60da33d87ed26c28993620f0d92487b0296, =5.17, >=40452ffca3c1a0f2994e826f9fa213b107f1a2d4 <00bf6868df65fa95b3854996246d15759fdc7070 | 6.12.94, 6.18.36, 7.0.13, 1aee05e814d292064bf5fa15733741040cdc48ba, 5627e57f1da68ff0146896eb3d2eed25e62adc44, 59db5d8bcc65e04d8598afd81ec3a18edb407470, 86ab00cf81d44b675bb23db62b88fd76c8ac8cea, 95caf60da33d87ed26c28993620f0d92487b0296, 00bf6868df65fa95b3854996246d15759fdc7070 |
| linux-kernel: Kernel | >=5.17.0 <6.1.191, >=6.13.0 <6.18.36, >=6.19.0 <7.0.13, >=6.2.0 <6.6.160, >=6.7.0 <6.12.94 | 6.1.191, 6.18.36, 7.0.13, 6.6.160, 6.12.94 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket