CVE-2026-143416: exfat: make valid_size and zeroed_size atomic
In the Linux kernel, the following vulnerability has been resolved:
exfat: make validsize and zeroedsize atomic
ei->validsize and ei->zeroedsize are 64-bit fields read from bio completion context (exfatiomapreadendio()) and from ->iomapbegin without irwsem, while writers update them under irwsem. On 32-bit these loads can tear, and the "if (x < new) x = new" read-modify-write can lose an update or regress the value when two writers race.
Convert both to atomic64t and funnel updates through a cmpxchg-based monotonic advance helper so the value only moves forward; plain reads use exfatget(), and the few shrink/init paths (truncate, inode fill, create) use exfatset(). This is a prerequisite for taking exfatpagemkwrite() out from under irwsem.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In exFAT, convert ei->valid_size and ei->zeroed_size to atomic64_t and funnel updates through a cmpxchg-based monotonic advance helper.
Event History
Frequently Asked Questions
Which systems are most directly exposed to torn reads?
The description specifically identifies 32-bit systems, where unsynchronized reads of the 64-bit exFAT size fields can tear. The affected fields are accessed in bio completion handling and iomap operations without i_rwsem.
What concurrent activity can trigger incorrect size tracking?
Concurrent updates can lose an update or move a tracked value backward when writers race. The affected values are valid_size and zeroed_size, and the issue involves updates occurring alongside unlocked reads.
What does the resolved change do?
The fix converts both fields to atomic64_t and uses a cmpxchg-based helper for monotonic advances, preventing values from decreasing during concurrent updates. Truncate, inode-fill, and create paths retain explicit set operations for initialization or shrinking.