# CVE-2021-47114: linux: In the Linux kernel, the following vulnerability has been resolved:  ocfs2: fix data corruption by fallocate  When fa...

CVE-2021-47114 is fixed in linux on 1 platform, first by DEBIAN-CVE-2021-47114, released March 15, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-47114
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0023
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 15, 2024

## Description

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/20210525093034.GB4112@quack2.suse.cz/T/

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 5.10.46-1 | [DEBIAN-CVE-2021-47114](https://patchblox.com/security/data/fix/linux/debian-cve-2021-47114.md) | Mar 15, 2024 |
| Linux | linux Debian 13.5 (trixie) | 5.10.46-1 | [DEBIAN-CVE-2021-47114](https://patchblox.com/security/data/fix/linux/debian-cve-2021-47114.md) | Mar 15, 2024 |
| Linux | linux Debian 14 | 5.10.46-1 | [DEBIAN-CVE-2021-47114](https://patchblox.com/security/data/fix/linux/debian-cve-2021-47114.md) | Mar 15, 2024 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
