In the Linux kernel, the following vulnerability has been resolved:
ocfs2: fix data corruption by fallocate
When fallocate punches holes out of inode size, if original isize is in the middle of last cluster, then the part from isize to the end of the cluster will be zeroed with buffer write, at that time isize is not yet updated to match the new size, if writeback is kicked in, it will invoke ocfs2_writepage()->block_write_full_page() where the pages out of inode size will be dropped. That will cause file corruption. Fix this by zero out eof blocks when extending the inode size.
Running the following command with qemu-image 4.2.1 can get a corrupted coverted image file easily.
qemu-img convert -p -t none -T none -f qcow2 $qcow_image \ -O qcow2 -o compat=1.1 $qcow_image.conv
The usage of fallocate in qemu is like this, it first punches holes out of inode size, then extend the inode size.
fallocate(11, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 2276196352, 65536) = 0 fallocate(11, 0, 2276196352, 65536) = 0
v1: https://www.spinics.net/lists/linux-fsdevel/msg193999.html v2: https://lore.kernel.org/linux-fsdevel/[email protected]/T/
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 30, 2024 | Mar 15, 2024 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Mar 15, 2024 |
| Suse | — | Upgrade kernel-preempt-develUpgrade kernel-devel-azureUpgrade kernel-syms-azureUpgrade kernel-develUpgrade kernel-preemptUpgrade kernel-symsUpgrade kernel-azure-develUpgrade kernel-sourceUpgrade kernel-obs-buildUpgrade kernel-64kb-develUpgrade kernel-source-azureUpgrade reiserfs-kmp-defaultUpgrade kernel-macrosUpgrade kernel-default-extraUpgrade kernel-azure-baseUpgrade kernel-default-baseUpgrade kernel-64kbUpgrade kernel-docsUpgrade kernel-default-manUpgrade kernel-default-develUpgrade kernel-zfcpdumpUpgrade kernel-defaultUpgrade kernel-azure | Aug 9, 2024 | Mar 15, 2024 |
| Ubuntu | — | Upgrade linuxUpgrade linux-oracle-5.4Upgrade linux-gcp-5.4Upgrade linux-azure-fipsUpgrade linux-awsUpgrade linux-hwe-5.4Upgrade linux-aws-5.4Upgrade linux-azureUpgrade linux-gcpUpgrade linux-azure-fde-5.15Upgrade linux-raspi-5.4Upgrade linux-oracleUpgrade linux-azure-4.15Upgrade linux-aws-hweUpgrade linux-bluefieldUpgrade linux-hweUpgrade linux-gcp-fipsUpgrade linux-raspiUpgrade linux-kvmUpgrade linux-aws-fipsUpgrade linux-gkeopUpgrade linux-azure-5.4Upgrade linux-fipsUpgrade linux-gcp-4.15 | Nov 19, 2024 | Mar 15, 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