← All Advisories
Reported from OT-Advisories.com as of

Linux Kernel XFS Log Recovery Copies Inode Fork Data Without Bounding It Against the Fork Size

Last refreshed2026-11-23

Status: UPDATED  |  Advisory ID: CVE-2026-99395

Key Details

CVECVE-2026-99395
CVSS Score / Version
7.8 (High) / CVSS v3.1
Updated2026-11-22
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Linux Kernel

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SubsystemsOT Supporting Infrastructure
SectorsAll Sectors

What to Know

In the Linux kernel, the following vulnerability has been resolved:

xfs: bound inode fork length against the fork size during log recovery

xlog_recover_inode_commit_pass2() copies an inode log item's data/attr

fork region into the inode buffer using the on-log region length without

bounding it against the fork capacity, e.g.:

len = item->ri_buf[2].iov_len;

memcpy(XFS_DFORK_DPTR(dip), src, len);

The only guard is an ASSERT, which is a no-op on production kernels

(CONFIG_XFS_DEBUG off), and xfs_dinode_verify() runs only after the copy.

A crafted image with a dirty log can therefore drive a heap out-of-bounds

write at mount time. The XFS_ILOG_DBROOT sibling already passes

XFS_DFORK_DSIZE as a bound; the DDATA/DEXT and ADATA/AEXT memcpy paths

did not.

Bound each logged fork region against the destination fork size before

copying it, and reject the log item with -EFSCORRUPTED when it does not

fit. Because the recovered inode is only verified after the fork data has

been copied in, the checks are done up front, before any memcpy into the

on-disk inode. (NVD)

What to Do

Monitor Linux's web page for any future patch releases.

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-99395
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-99395
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.