CVE-2026-99395

HighCVSS 7.8/10Last modified Nov 23, 2026

Description

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.

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < f9827d457addf4a7fb089124fff01f10de83d557; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 287bb7a11fe1053d78172f874e16873d4b20d6e5; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < af559d87fdd921b90c86125f78d8b97d754432dd; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < e2768e65a5f2f942c831e3df3b06ad7332d423e6; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 9232301894a06e664d8de2da97175cf98419bd16
LinuxLinux5.8

References

Timeline

Published
Nov 19, 2026
Last modified
Nov 23, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-99396In the Linux kernel, the following vulnerability has been resolved: xfs: bound da-node entry count against the correct geometry xfs_da3_noCVE-2026-99397In the Linux kernel, the following vulnerability has been resolved: xfs: always report inode repair setup failures LOLLM noticed that xchkCVE-2026-99398In the Linux kernel, the following vulnerability has been resolved: xfs: always forget cached ACLs if the attr fork swap succeeds LOLLM coCVE-2026-993997.8In the Linux kernel, the following vulnerability has been resolved: xfs: reject remote xattr entries with an out-of-range value length xfsCVE-2026-99408.8Heap buffer overflow in ANGLE in Google Chrome prior to 148.0.7778.216 allowed a remote attacker to potentially exploit heap corruption via CVE-2026-994007.8In the Linux kernel, the following vulnerability has been resolved: xfs: reject out-of-range attribute value lengths in xfs_attr_copy_valueCVE-2026-994017.0In the Linux kernel, the following vulnerability has been resolved: rtnetlink: wait for RCU readers in rtnl_link_unregister() rtnl_link_opCVE-2026-99402In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_payload: restrict checksum offsets to known values We nCVE-2026-99403In the Linux kernel, the following vulnerability has been resolved: xfs: mark overfull dabtree node blocks as corrupt LOLLM observes that CVE-2026-99404In the Linux kernel, the following vulnerability has been resolved: xfs: check fork type against dabtree block magic number LOLLM complainCVE-2026-99405In the Linux kernel, the following vulnerability has been resolved: xfs: abort dirtree repair if the live update hook dies LOLLM notices tCVE-2026-99406In the Linux kernel, the following vulnerability has been resolved: xfs: fix lost errno returned from xfarray_foliosort LOLLM noticed that
CVE-2026-99395: High severity, CVSS 7.8 | Vulnix