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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-19 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99395, UBUNTU-CVE-2026-99395, CGA-28rr-5575-8775, CGA-3rj3-5rhg-w74f, CGA-6vwj-wfmf-j89m, CGA-8g3j-75mw-x6p2, CGA-8xcq-7h73-6qh9, CGA-cv2h-37q8-fc36, CGA-j6j2-hrqw-c3g3, CGA-p33g-pjwv-4fq7, CGA-ppmw-62fp-86mx, CGA-q886-7gcr-gggg, CGA-qr2g-wc55-c4gv, CGA-4wj5-p23f-h4fr, CGA-6m48-hxc5-5p63, CGA-h394-f5hg-7c9v, CGA-hj82-j8m2-4w62, CGA-pc83-676g-787v, CGA-wpq7-pqj6-8prx, CGA-x542-6j3x-m8m5, CGA-p79r-q53q-64c6
- Record: https://cvemate.com/vulnerability/CVE-2026-99395 · JSON: https://cvemate.com/vulnerability/CVE-2026-99395/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.21%, percentile 11.799%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 170)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.117-1 \| \< 7.3.3-1
- debian linux-6.12 (Debian): \< 6.12.117-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd>
- <https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe>
- <https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6>
- <https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16>
- <https://security-tracker.debian.org/tracker/CVE-2026-99395>
- <https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a>
- <https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557>
- <https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5>
- <https://ubuntu.com/security/CVE-2026-99395>
- <https://www.cve.org/CVERecord?id=CVE-2026-99395>
- <https://git.kernel.org/linus/9232301894a06e664d8de2da97175cf98419bd16>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99395.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-99395>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>

---

Data as of 2026-12-05T08:38:13.654Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
