# CVE-2026-99395: xfs: bound inode fork length against the fork size during log recovery

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-28)
- **Published:** 2026-11-19T14:23:33.347Z
- **Modified:** 2026-11-23T08:17:43.807Z

## Who should check

- Anyone running Linux \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< f9827d457addf4a7fb089124fff01f10de83d557; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 287bb7a11fe1053d78172f874e16873d4b20d6e5; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< af559d87fdd921b90c86125f78d8b97d754432dd; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< e2768e65a5f2f942c831e3df3b06ad7332d423e6; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 9232301894a06e664d8de2da97175cf98419bd16
- Anyone running Linux 5.8

## 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.

## Affected and fixed versions

- Linux: \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< f9827d457addf4a7fb089124fff01f10de83d557; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 287bb7a11fe1053d78172f874e16873d4b20d6e5; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< af559d87fdd921b90c86125f78d8b97d754432dd; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< e2768e65a5f2f942c831e3df3b06ad7332d423e6; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 9232301894a06e664d8de2da97175cf98419bd16 (cvelist)
- Linux: 5.8 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9232301894a06e664d8de2da97175cf98419bd16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99395.md
Affected: Linux >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < f9827d457addf4a7fb089124fff01f10de83d557; >= 658fa68b6f34f73c7e4023489accd34c1db91cb1, < 287bb7a11fe1053d78172f874e16873d4b20d6e5; >= 658fa68b6f34f73c7e40234…
Fixed in: Linux 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a, Linux 287bb7a11fe1053d78172f874e16873d4b20d6e5, Linux 9232301894a06e664d8de2da97175cf98419bd16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99395 being exploited?

There is no confirmed exploitation: CVE-2026-99395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99395?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-99395?

Linux \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< f9827d457addf4a7fb089124fff01f10de83d557; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 287bb7a11fe1053d78172f874e16873d4b20d6e5; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< af559d87fdd921b90c86125f78d8b97d754432dd; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< e2768e65a5f2f942c831e3df3b06ad7332d423e6; \>= 658fa68b6f34f73c7e4023489accd34c1db91cb1, \< 9232301894a06e664d8de2da97175cf98419bd16; Linux 5.8.

### Is there a fix for CVE-2026-99395?

Yes. Fixed in Linux 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a, Linux 287bb7a11fe1053d78172f874e16873d4b20d6e5, Linux 9232301894a06e664d8de2da97175cf98419bd16. Upgrade Linux to 9232301894a06e664d8de2da97175cf98419bd16 or later.

### How do I check if I'm affected by CVE-2026-99395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a>
- other: <https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557>
- other: <https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5>
- other: <https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd>
- other: <https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe>
- other: <https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6>
- other: <https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99395>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99395> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99395>
