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-obs-buildUpgrade kernel-64kb-develUpgrade kernel-sourceUpgrade kernel-azure-develUpgrade kernel-syms-azureUpgrade kernel-symsUpgrade kernel-develUpgrade kernel-preemptUpgrade kernel-preempt-develUpgrade kernel-devel-azureUpgrade kernel-source-azureUpgrade kernel-default-extraUpgrade kernel-default-baseUpgrade reiserfs-kmp-defaultUpgrade kernel-azureUpgrade kernel-azure-baseUpgrade kernel-defaultUpgrade kernel-64kbUpgrade kernel-docsUpgrade kernel-default-manUpgrade kernel-macrosUpgrade kernel-default-develUpgrade kernel-zfcpdump | Aug 9, 2024 | Mar 15, 2024 |
| Ubuntu | — | Upgrade linux-gcp-5.4Upgrade linuxUpgrade linux-awsUpgrade linux-oracle-5.4Upgrade linux-azure-fipsUpgrade linux-aws-5.4Upgrade linux-bluefieldUpgrade linux-raspiUpgrade linux-gcp-4.15Upgrade linux-gkeopUpgrade linux-azure-5.4Upgrade linux-azureUpgrade linux-oracleUpgrade linux-raspi-5.4Upgrade linux-gcpUpgrade linux-fipsUpgrade linux-aws-hweUpgrade linux-hwe-5.4Upgrade linux-aws-fipsUpgrade linux-kvmUpgrade linux-gcp-fipsUpgrade linux-azure-4.15Upgrade linux-azure-fde-5.15Upgrade linux-hwe | 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