Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted XFS image to target
-
DeliveryVictim mounts the malicious filesystem
-
ExploitLog recovery copies oversized fork region
-
ExecutionHeap out-of-bounds write in kernel
-
ImpactMemory corruption / privilege escalation or crash
Vulnerability Assessment
| Exploitation Conditions | Exploitation requires that the system mount a crafted/malicious XFS filesystem image whose on-disk log is dirty, triggering XFS log recovery via xlog_recover_inode_commit_pass2(). The specific precondition is an inode log item carrying a data/attr fork region (the DDATA/DEXT or ADATA/AEXT memcpy paths) whose logged length exceeds the destination fork size; the sibling XFS_ILOG_DBROOT path is already bounded and not affected. Limiting factors: it is NOT remotely reachable (AV:L) and requires user interaction (UI:R) - a victim must mount the attacker-supplied image, so delivery depends on removable media, user-initiated mounts, automount, or container/multi-tenant mount scenarios. The ASSERT guard is absent on production kernels (CONFIG_XFS_DEBUG off), so debug builds are not exposed in the same way. Fixed kernels reject the malformed log item with -EFSCORRUPTED before any copy. |
| Impact | The signals converge on this being a moderate-priority, not emergency, issue. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 7.8 HIGH) describes a local attack requiring user interaction, not a remotely-reachable flaw: an attacker cannot trigger it over the network. The mechanism is explicit and credible in the source - xlog_recover_inode_commit_pass2() copies a logged fork region into the inode buffer using the on-log length without bounding it to the destination fork size, and the only guard is an ASSERT that is compiled out on production kernels (CONFIG_XFS_DEBUG off), with xfs_dinode_verify() running only after the copy - so a crafted XFS image with a dirty log yields a heap out-of-bounds write at mount time. The real-world exploitation signals are low-to-moderate and consistent with each other: EPSS is 0.22% (13th percentile), the CVE is NOT on CISA KEV, and no public exploit code or PoC reference is present in the input, so exploitation is 'no public exploit identified at time of analysis.' The vuln.today decision label is 'this_week,' which aligns with patch-promptly rather than drop-everything. The practical risk is gated by the delivery requirement: someone must mount an attacker-supplied/crafted filesystem image (removable media, a user-mounted image, or an automounted volume). That makes it meaningful in multi-tenant, container, or kiosk/automount scenarios but not a mass-exploitable network bug. No conflicting signals are present; the chief uncertainty is that the four git.kernel.org commit references are the only authoritative sources and no NVD-hosted CVSS/CWE enrichment (CWE listed N/A) accompanies them. |
| Exploit ScenarioDerived | An attacker crafts a malicious XFS filesystem image whose dirty log contains an inode log item with an oversized data/attr fork region. When a victim mounts this image (e.g., removable media, a downloaded disk image, or an automounted/container volume), log recovery runs and memcpy copies the attacker-controlled length past the inode fork bounds, producing a heap out-of-bounds write that can corrupt kernel memory and potentially lead to code execution or a crash. No public exploit code or PoC reference is present in the supplied data, and the attack requires local delivery of the image plus the mount action (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Heap out-of-bounds write in the Linux kernel's XFS log recovery path (CVE-2026-99395) affects kernels from 5.8 onward, where xlog_recover_inode_commit_pass2() copies a logged data or attr fork region into the on-disk inode using the on-log length without checking it against the destination fork capacity. The only guard is an ASSERT that compiles away on production kernels (CONFIG_XFS_DEBUG off), and xfs_dinode_verify() runs only after the memcpy, so mounting a crafted XFS image with a dirty log can corrupt kernel heap memory. Exploitation is not remote: it requires a victim to mount an attacker-supplied filesystem image (AV:L/UI:R per the assessed vector), and no public exploit code or CISA KEV entry is associated with the issue; EPSS is low at roughly 0.22 percent. Vendor patches are available and fixed kernels reject the malformed log item with -EFSCORRUPTED before any copy occurs.
RemediationAI
Vendor-released patches are available: update to Linux 6.12.117, 6.18.61, 7.3.2 or 7.4-rc1 (or later), which incorporate upstream commits 9232301894a06e664d8de2da97175cf98419bd16, af559d87fdd921b90c86125f78d8b97d754432dd, f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe and e2768e65a5f2f942c831e3df3b06ad7332d423e6 as published at git.kernel.org/stable and listed via https://nvd.nist.gov/vuln/detail/CVE-2026-99395; distribution kernels need the equivalent backport from their vendor. Fixed kernels validate the logged fork region against the fork size during recovery and reject an oversized item with -EFSCORRUPTED before any memcpy, so a patched system refuses to mount the malformed image instead of writing out of bounds. Because exploitation depends entirely on mounting an untrusted XFS image with a dirty log, restrict mounting of attacker-supplied filesystems until patched: avoid auto-mounting removable media or loopback/container images from untrusted sources, and require privileged, user-initiated mounts of XFS images only from trusted origins. Building with CONFIG_XFS_DEBUG makes the ASSERT active and would catch the malformed length, but debug kernels carry substantial overhead and are not a production substitute for the patch. The issue is rated this_week priority with low EPSS (about 0.22 percent) and no KEV listing, so remediation should be scheduled in the normal patch window rather than treated as an emergency.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
XFS is a journaling filesystem whose on-disk log is replayed at mount time by the log recovery code. During recovery, xlog_recover_inode_commit_pass2() rebuilds inodes from logged items, including data-fork and attr-fork regions. For the DDATA/DEXT and ADATA/AEXT variants, the function took the length from the log item buffer (item->ri_buf[2].iov_len) and used it directly in a memcpy into XFS_DFORK_DPTR(dip) without comparing it to the destination fork size; only an ASSERT protected the copy, and ASSERTs are no-ops when CONFIG_XFS_DEBUG is off, which is the norm for production kernels. Because xfs_dinode_verify() executes after the fork data is copied, a malicious on-disk dirty log can drive a heap out-of-bounds write at mount time. The XFS_ILOG_DBROOT sibling path already passed XFS_DFORK_DSIZE as a bound, showing the intended pattern. The fix bounds each logged fork region against the destination fork size before any memcpy and rejects the log item with -EFSCORRUPTED when the region does not fit, moving validation ahead of the copy. The root cause class is a missing length/size validation leading to a buffer overflow (CWE not supplied in the feed).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Triggered only by mounting a crafted local image (AV:L, UI:R); no prior privileges needed beyond the mount action (PR:N); heap OOB write in kernel yields full C/I/A impact.
Primary rating from Vendor (Linux).
CVSS VectorVendor: Linux
Lifecycle Timeline
4DescriptionCVE.org
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.
Executive ViewAI
A heap out-of-bounds write in the Linux kernel's XFS filesystem affects kernels from version 5.8 onward, enabling local privilege escalation when a user mounts a maliciously crafted disk image. While exploitation requires user action and no public exploit code is currently identified, successful attacks can grant attackers kernel-level control on affected systems, undermining endpoint and server security.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
EUVD-2026-130053
GHSA-x676-f66f-47c4
NVD
CVE.org
EPSS
VulDB
Exploit-DB