CVE-2026-99395
published high CVSS 3.1 · 7.8xfs: bound inode fork length against the fork size during log recovery
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux658fa68b6f34f73c7e4023489accd34c1db91cb1 to < 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a · 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < f9827d457addf4a7fb089124fff01f10de83d557 · 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < 287bb7a11fe1053d78172f874e16873d4b20d6e5 · 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < af559d87fdd921b90c86125f78d8b97d754432dd · 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe · 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < e2768e65a5f2f942c831e3df3b06ad7332d423e6 · 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < 9232301894a06e664d8de2da97175cf98419bd16 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The overflowing bytes are the on-disk log fork region: xlog_recover_add_to_trans records oh_len as ri_buf[].iov_len, and xlog_recover_inode_commit_pass2 copies that length into the inode buffer from xlog_recover pass 2, reached by xfs_log_mount in xfs_fs_fill_super. The log record is image data, not a protocol message. AC:L - The attacker sets a dirty log (tail_blk != head_blk), ilf_fields to XFS_ILOG_DDATA, XFS_ILOG_DEXT, XFS_ILOG_ADATA, or XFS_ILOG_AEXT, and an oh_len larger than XFS_DFORK_DSIZE or XFS_DFORK_ASIZE. xlog_recover then hits the memcpy on a normal mount; no race, media fault, or norecovery mount option is involved. PR:N - Supplying the image requires no credential. The mount and fsopen paths reach recovery only after mount_capable(), which demands init-namespace CAP_SYS_ADMIN because xfs_fs_type does not set FS_USERNS_MOUNT; that capability is used by the user who performs the mount. UI:R - xlog_recover_inode_commit_pass2 is called only from xfs_log_mount during xfs_mountfs in xfs_fs_fill_super. File operations on an already-mounted filesystem cannot inject the oversized log oh_len, so a user has to mount the supplied image. S:U - The write corrupts the host kernel's inode buffer from xfs_buf_alloc_backing_mem and memory adjacent to it. Impact stays in that kernel; XFS is not mountable from a user namespace, and the bug is not a guest-to-host or IOMMU crossing. C:H - The memcpy copies attacker-chosen fork bytes for an attacker-chosen iov_len with no production check against XFS_DFORK_DSIZE. A v5 image with a 1024-byte block and ilf_len of one block uses a 1024-byte kmalloc from xfs_buf_alloc_kmem, so a multi-kilobyte oh_len is a controlled heap overflow that can be leveraged to disclose adjacent memory. I:H - The DDATA/DEXT memcpy uses ri_buf iov_len with no comparison to XFS_DFORK_DSIZE; the nearby ASSERT only requires len == xlog_calc_iovec_len(ilf_dsize), and ilf_dsize is a uint16 the image sets. The ADATA/AEXT path's len <= XFS_DFORK_ASIZE check was an ASSERT, absent unless CONFIG_XFS_DEBUG is on. A:H - The memcpy runs before xfs_dinode_verify. Writing past the inode buffer corrupts neighboring kernel allocations and oopses or panics the host; returning -EFSCORRUPTED from recovery does not undo the overflow.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 658fa68b6f34f73c7e4023489accd34c1db91cb1 to < 738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a (affected · git)658fa68b6f34f73c7e4023489accd34c1db91cb1 to < f9827d457addf4a7fb089124fff01f10de83d557 (affected · git)658fa68b6f34f73c7e4023489accd34c1db91cb1 to < 287bb7a11fe1053d78172f874e16873d4b20d6e5 (affected · git)658fa68b6f34f73c7e4023489accd34c1db91cb1 to < af559d87fdd921b90c86125f78d8b97d754432dd (affected · git)658fa68b6f34f73c7e4023489accd34c1db91cb1 to < f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe (affected · git)658fa68b6f34f73c7e4023489accd34c1db91cb1 to < e2768e65a5f2f942c831e3df3b06ad7332d423e6 (affected · git)658fa68b6f34f73c7e4023489accd34c1db91cb1 to < 9232301894a06e664d8de2da97175cf98419bd16 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.8 (affected)0 to < 5.8 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/287bb7a11fe1053d78172f874e16873d4b20d6e5
- https://git.kernel.org/stable/c/738959d93ca51be0d9d3d15f9b5b84ac4d39fe8a
- https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16
- https://git.kernel.org/stable/c/af559d87fdd921b90c86125f78d8b97d754432dd
- https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6
- https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe
- https://git.kernel.org/stable/c/f9827d457addf4a7fb089124fff01f10de83d557
Provider assertions
1Linux · cna
xfs: bound inode fork length against the fork size during log recovery
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9deec8dbc8b6bd15f8df8d23ac581e9b61aeab9b7b718301730d56aa52985154
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record