CVE-2026-99395

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

7.8 high EPSS 0.21%

Published 19 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99395

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99395 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
required: a user has to do something, such as open a link or a file
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.8% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before f9827d457addf4a7fb089124fff01f10de83d557
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before 287bb7a11fe1053d78172f874e16873d4b20d6e5
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before af559d87fdd921b90c86125f78d8b97d754432dd
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before e2768e65a5f2f942c831e3df3b06ad7332d423e6
affected from 658fa68b6f34f73c7e4023489accd34c1db91cb1, before 9232301894a06e664d8de2da97175cf98419bd16
Other versions: unaffected
Linux
affected 5.8
unaffected before 5.8
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.61 up to and including 6.18.*
unaffected from 7.3.2 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99395 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99395

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99395
trivy image --scanners vuln IMAGE | grep CVE-2026-99395

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99395 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.