In the Linux kernel, the following vulnerability has been resolved:
erofs: handle overlapped pclusters out of crafted images properly
syzbot reported a task hang issue due to a deadlock case where it is waiting for the folio lock of a cached folio that will be used for cache I/Os.
After looking into the crafted fuzzed image, I found it's formed with several overlapped big pclusters as below:
Ext: logical offset | length : physical offset | length 0: 0.. 16384 | 16384 : 151552.. 167936 | 16384 1: 16384.. 32768 | 16384 : 155648.. 172032 | 16384 2: 32768.. 49152 | 16384 : 537223168.. 537239552 | 16384 ...
Here, extent 0/1 are physically overlapped although it's entirely _impossible_ for normal filesystem images generated by mkfs.
First, managed folios containing compressed data will be marked as up-to-date and then unlocked immediately (unlike in-place folios) when compressed I/Os are complete. If physical blocks are not submitted in the incremental order, there should be separate BIOs to avoid dependency issues. However, the current code mis-arranges z_erofs_fill_bio_vec() and BIO submission which causes unexpected BIO waits.
Second, managed folios will be connected to their own pclusters for efficient inter-queries. However, this is somewhat hard to implement easily if overlapped big pclusters exist. Again, these only appear in fuzzed images so let's simply fall back to temporary short-lived pages for correctness.
Additionally, it justifies that referenced managed folios cannot be truncated for now and reverts part of commit 2080ca1ed3e4 ("erofs: tidy up `struct z_erofs_bvec`") for simplicity although it shouldn't be any difference.
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux-6.1Upgrade linux | May 15, 2025 | Oct 21, 2024 |
| Ubuntu | — | Upgrade linux-image-6.11.0-1011-oracle-64kUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-azure-nvidiaUpgrade linux-image-6.8.0-1028-raspiUpgrade linux-image-oem-22.04aUpgrade linux-image-6.8.0-2023-raspi-realtimeUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-awsUpgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-ibm-classicUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-6.11.0-1009-azureUpgrade linux-image-ibmUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-gcp-lts-24.04Upgrade linux-image-6.8.0-1025-gkeUpgrade linux-image-6.8.0-1026-oracle-64kUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-6.8.0-1028-nvidia-lowlatencyUpgrade linux-image-6.11.0-1008-raspiUpgrade linux-image-6.8.0-1012-gkeopUpgrade linux-image-6.11.0-1011-oracleUpgrade linux-image-6.11.0-1010-lowlatency-64kUpgrade linux-image-raspiUpgrade linux-image-azure-fde-lts-24.04Upgrade linux-image-nvidia-64k-6.8Upgrade linux-image-aws-lts-24.04Upgrade linux-image-azureUpgrade linux-image-oracleUpgrade linux-image-azure-fdeUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-azure-lts-24.04Upgrade linux-image-kvmUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-6.8.0-1029-awsUpgrade linux-image-6.8.0-60-genericUpgrade linux-image-6.11.0-1009-awsUpgrade linux-image-oem-22.04bUpgrade linux-image-oem-24.04bUpgrade linux-image-gkeop-6.8Upgrade linux-image-6.8.0-1016-azure-nvidiaUpgrade linux-image-6.8.0-1029-azure-fdeUpgrade linux-image-gcp-64kUpgrade linux-image-6.8.0-60-lowlatency-64kUpgrade linux-image-gkeopUpgrade linux-image-6.11.0-1015-oemUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-raspi-realtimeUpgrade linux-image-oem-22.04Upgrade linux-image-6.8.0-60-generic-64kUpgrade linux-image-6.11.0-18-generic-64kUpgrade linux-image-lowlatencyUpgrade linux-image-gcpUpgrade linux-image-6.11.0-1009-gcpUpgrade linux-image-realtime-hwe-24.04Upgrade linux-image-6.8.0-1026-oracleUpgrade linux-image-6.8.0-1028-nvidia-lowlatency-64kUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-realtimeUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-6.8.0-1026-ibmUpgrade linux-image-6.11.0-18-genericUpgrade linux-image-oracle-lts-24.04Upgrade linux-image-6.11.0-1009-azure-fdeUpgrade linux-image-6.8.0-1029-azureUpgrade linux-image-oem-24.04aUpgrade linux-image-6.8.0-1030-gcp-64kUpgrade linux-image-6.8.0-60-lowlatencyUpgrade linux-image-oem-24.04Upgrade linux-image-6.11.0-1010-lowlatencyUpgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-gkeUpgrade linux-image-6.8.0-1028-oemUpgrade linux-image-6.8.0-1028-nvidia-64kUpgrade linux-image-nvidiaUpgrade linux-image-oracle-64kUpgrade linux-image-virtualUpgrade linux-image-generic-lpaeUpgrade linux-image-oem-22.04dUpgrade linux-image-generic-64kUpgrade linux-image-6.8.0-1030-gcpUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-6.8.1-1022-realtimeUpgrade linux-image-oem-22.04cUpgrade linux-image-nvidia-6.8Upgrade linux-image-genericUpgrade linux-image-6.8.0-1028-nvidiaUpgrade linux-image-nvidia-64kUpgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-6.11.0-1005-realtimeUpgrade linux-image-lowlatency-64k | Feb 20, 2025 | Oct 21, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Oct 21, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub