CVE-2021-47460
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47460 addresses a data corruption vulnerability in the Linux kernel's OCFS2 filesystem when converting files from inline format to normal inode format. The issue was discovered when changes to page buffer invalidation behavior exposed a latent bug in the conversion process (Kernel Git).

Technical details

The vulnerability occurs in the ocfs2_convert_inline_data_to_extents() function, which attempts to zero out an entire cluster allocated for file data. The code grabs, zeroes, and marks pages as dirty beyond the file's i_size limit. However, the writeback code typically ignores these dirty pages, resulting in blocks never being zeroed on disk. After changes to buffer invalidation behavior, pages end up with clean PageDirty bits but dirty buffers attached. When a file is converted from inline format and later grown, the invalid dirtiness state persists, causing written data to be lost when pages are reclaimed (Kernel Git).

Impact

When exploited, this vulnerability can lead to data corruption and loss of file contents. Specifically, when a file is converted from inline format, undergoes writeback, and is subsequently grown, data written to affected pages is permanently lost once those pages are reclaimed from memory (Kernel Git).

Exploitability

The issue can be reproduced using standard filesystem operations. A proof-of-concept exists using the xfs_io utility with a sequence of write operations: xfs_io -f -c "pwrite 0 2000" -c "pwrite 2000 2000" -c "fsync" -c "pwrite 4000 2000" ocfs2_file. After unmounting and remounting the filesystem, the end portion of the file loses its contents (Kernel Git).

Mitigation and workarounds

The vulnerability was fixed by removing the unnecessary zeroing during conversion from inline format, similar to the approach taken in the standard write path. The fix was implemented in the Linux kernel and backported to affected stable versions (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74726NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules
NoYesAug 22, 2026
CVE-2026-74719NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesAug 22, 2026
CVE-2026-74717NONEN/A
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management