PunchPlateau killings: Afenifere demands arrests, prosecution of perpetratorsBollywood HungamaSCOOP: Teaser of Sanjay Leela Bhansali’s Ranbir Kapoor-Alia Bhatt-Vicky Kaushal starrer Love & War likely to be unveiled on December 9Daily MaverickSTORY ARK: Prevention cheaper than cure — SA’s wildfire strategy needs ‘Green New Deal’한겨레‘푸른 피 에이스’ 원태인 삼성 남는다…4년 195억 ‘역대 최고’UOLLula diz que Trabuco já era rico e que poderia dedicar 4 anos ao BrasilSky TG24Incidente sito nucleare Sarov, Italia incrementa controlli per radioattivitàWirtualna PolskaKto jest liderem prawicy? Wyraźny faworyt w sondażu dla WP20 MinutenAltbau mit Papeterie und Wohnungen brennt lichterlohFootball ItaliaItaly international Miretti scores surprising Besiktas hat-trickObservador Desporto15h. Mau Tempo Açores. "Fundo Climático serve para isto"TagesschauCDU-Landesvorstand öffnet Weg für eigenen Kandidaten in Sachsen-Anhaltسكاي نيوز عربيةرويترز: هجوم بمسيرة يستهدف برج الفيصلية بالرياض
betaThe Daily Newsstand · Free, Always
Sunday, December 6, 2026
Automatic translation is active. Articles in other languages will open in English.Enable automatic translation of articles from other languages into English.

Linux XFS Patches Proposed for Five Out-of-Bounds Memory Access Bugs in Log Recovery

The article's text, from Joho no Todai's page.

Translate

Five XFS bug reports appeared on the Linux kernel development mailing list between 12:41 and 12:44 UTC on December 6, 2026. Two reporters jointly submitted the reports and a patch for each issue.

XFS records metadata changes in a journal. After an unclean shutdown such as a sudden loss of power, the filesystem replays the log during mount to restore consistency.

The problems are in log recovery, which makes the filesystem available. Insufficient validation of record lengths, positions, and item counts could lead to accesses beyond allocated memory.

The kernel processes filesystem metadata before reading any file contents. If the recovery log contains malformed values, how much of it can the kernel trust? The code that restores data consistency also needs careful input validation to protect kernel memory.

Five XFS log recovery bugs and proposed fixes

Submitted between 12:00 and 12:59 UTC on December 6, 2026
Mount tests with malformed logs pending recovery
Operation and causeOut-of-bounds
access
Proposed fix
Buffer recovery
Insufficient checks fordata presence and length
ReadCheck that regions existand verify read boundsfor metadatain the buffer
File metadata(inode) recovery
Insufficient checks onthe number of regions
ReadVerify the requiredregion count first
Inode recovery
Insufficient destination bounds checksthe number of regions
Read and writeVerify that the wholeinode fits inthe buffer
Quota record recovery(with accounting enabled)
Insufficient checks on regions,length, and destination
Read and writeVerify the region exists,has the required length,and fits its destination
Inode buffer validation
Overestimated inode count
ReadCount how many fitin the actual buffer

Five bugs in counts, offsets, and lengths

The first report concerns recovery of buffers that temporarily hold metadata. The code did not fully verify that the recorded changes had corresponding data of sufficient length. The reporters observed out-of-bounds reads and faults. The proposed fix checks that required regions exist and verifies read bounds when recovering buffers with file metadata.

The second report concerns recovery of inodes, which hold file metadata. Recovery of an inode and information about its data and extended attributes did not adequately validate whether all required regions were present. The reporters observed out-of-bounds reads and faults. Some mounts still succeeded despite an out-of-bounds read, so successful mounting alone does not establish safe recovery. The patch checks that required regions exist before restoring them.

The third report describes insufficient bounds checking on where an inode is restored. Testing found out-of-bounds reads and writes, along with a warning about corruption of metadata used by the Kernel Address Sanitizer (KASAN). The proposed fix checks that the entire inode fits in the buffer.

The fourth report concerns quotas, which track disk usage. When quota accounting was enabled, log recovery did not fully validate the record and its destination. The reporters observed out-of-bounds reads and writes. The fix checks that the data region exists, has the required length, and fits at its destination in the buffer.

The final report describes a bug in validation of the inode buffer used during recovery. The verifier could overestimate the number of inodes present by deriving the count from a rounded buffer length. The test found an out-of-bounds read. The patch calculates how many inodes fit in the actual buffer.

At 09:22 UTC that day, the reporters also submitted a related patch for the code that copies metadata within an inode. The separate patch modifies a function shared with some of the five later fixes. The validation gaps therefore span several code paths.

Read-only mounts can still replay the log

The five issues appeared in tests that mounted XFS filesystems with malformed logs pending recovery. The reporters said mounting XFS requires administrative privileges (CAP_SYS_ADMIN) in the initial user namespace. This includes mounts performed on a user’s behalf by a privileged service. They did not test whether desktop environments that mount removable storage automatically are affected.

A read-only mount can still replay the log. The reporters confirmed the quota issue on a read-only mount. The filesystem carries out recovery to become usable even if the user does not intend to modify its files.

XFS has a norecovery option that skips log recovery on a read-only mount. After an unclean shutdown, metadata can remain inconsistent and some files or directories may be inaccessible. Avoid mounting untrusted filesystem images in a normal working environment.

XFS read-only mounts and logs pending recovery

SettingsLog recoveryEffects and caveats
Read-onlyRunsWith a malformed logand quota accountingenabled in testing,out-of-bounds memoryaccess occurred
Read-only
+norecovery
SkippedAfter an unclean shutdown,metadata may remaininconsistent, andsome files ordirectoriesmay be inaccessible

The reporters did not examine the effects of the inode and quota out-of-bounds writes on a kernel without KASAN. The memory corruption demonstrated in the tests does not establish whether arbitrary code execution or data theft is possible. That would require further investigation.

From AI-assisted discovery to human verification

The reporters used the Linux kernel fuzzer syzkaller as the basis for AI-assisted discovery. Fuzzing feeds software varied inputs to uncover unexpected behavior. The reporters said they checked the findings against the source code and confirmed the anomalous behavior.

They confirmed the first four issues on Linux 7.4-rc5. They reproduced the fifth on upstream development code and said the relevant code matched 7.4-rc5. The tests used KASAN.

For all five comparisons, the reporters used the same kernel configuration and test images before and after patching. With the fixes, the reported out-of-bounds accesses were no longer detected and the malformed images failed to mount. The unmodified comparison images still recovered and mounted successfully, they said.

Backporting the fixes to stable kernels also takes care. The quota patch notes that a stable tree without an earlier error-handling fix can skip a malformed item and continue recovery even after the bounds check prevents invalid access. The result on deployed kernels can depend on which related fixes they include.

The Linux kernel’s security bug reporting process calls for a reproducer and patch verification for AI-assisted findings. It directs reporters to provide reproducers to maintainers privately, and these reporters said they would supply them on request.

The reporters said they found the final inode buffer bug while reviewing code related to a fuzzing result. Human inspection uncovered a validation gap in a field the fuzzer had not changed.

Finding unusual behavior is only part of the work. Someone has to determine why it occurred, make the code reject invalid input, and check that valid input still works. The value of AI here is that it helps people find where to look.

View the original on Joho no Todai →