Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessMount or access nilfs2 directory
-
Deliveryllseek to unaligned position
-
Exploitreaddir parses bogus entry
-
Executiondir_emit reads past folio
-
ImpactLeak kernel memory to userspace
Vulnerability Assessment
| Exploitation Conditions | Requires a mounted nilfs2 filesystem that the attacker can read: the attacker opens a directory on nilfs2, uses llseek() to place ctx->pos at an arbitrary unaligned offset (or into unvalidated bytes of a corrupted/crafted nilfs2 image), then issues readdir/getdents. Exploitation is strongly LIMITED to deployments that actually use nilfs2 (uncommon), and to actors with local access or the ability to introduce a crafted image (e.g., removable-media auto-mount). It is not reachable over a network despite the AV:N metric, and the primary impact is disclosure of adjacent kernel memory (with possible out-of-bounds-read fault). The complete fix is updating to a fixed kernel version; no separate mitigation is stated beyond not mounting untrusted/corrupted nilfs2 images. |
| Impact | Signals conflict and must be reconciled before prioritizing. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, base 9.1) implies remote, unauthenticated, network-reachable exploitation, but the description describes a purely local mechanism: userspace sets ctx->pos via llseek() on an open nilfs2 directory, so the attacker must already have local access to a mounted nilfs2 filesystem (or the ability to mount a crafted image). The AV:N and PR:N metrics are therefore inconsistent with the stated trigger - verify with the vendor/NVD, as this reads as a local information-disclosure (out-of-bounds read) issue, not a network-exploitable one. EPSS is 1.38% (73rd percentile), consistent with a kernel bug that has no network exposure and no known exploit. There is no CISA KEV listing and no PoC/exploit reference in the input, so there is no evidence of active exploitation. The vuln.today Decision label is act_now and a vendor patch is available, so the actionable priority is to apply the fixed kernel on systems that actually mount nilfs2 - but the real-world urgency is tempered by the local-only vector and the niche filesystem, making this far lower practical risk than the 9.1/AV:N score suggests for the typical fleet. |
| Exploit ScenarioDerived | A local user (or a process able to mount an attacker-supplied nilfs2 image, e.g. via an auto-mounting removable device) opens a directory on a nilfs2 volume, seeks with llseek() to an arbitrary unaligned offset inside a directory folio, and calls getdents/readdir. nilfs_readdir() parses the bogus offset as a directory entry and dir_emit() copies up to 255 name_len bytes, reading past the folio and leaking adjacent kernel memory to userspace (or faulting). No public exploit or PoC is referenced for this CVE. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Information disclosure in the Linux kernel's nilfs2 filesystem allows a local actor who can open a directory on a mounted nilfs2 volume to set an arbitrary directory position with llseek(), after which readdir() parses an unaligned or unvalidated offset as a directory entry and can copy up to 255 bytes of adjacent kernel memory to userspace, with a possible out-of-bounds read fault. The assessed vector is local (AV:L/PR:L/UI:N) and requires a mounted nilfs2 filesystem the attacker can read, so it is not network-reachable despite NVD's 9.1 AV:N vector; nilfs2 deployments are uncommon. No public exploit has been identified at time of analysis, EPSS is 1.38% (73rd percentile), and vuln.today labels remediation act_now.
RemediationAI
Vendor-released patch: Linux 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, and 7.4-rc1, corresponding to the git.kernel.org stable commits listed in the references. Update to the fixed release for the branch in use; the complete fix is updating the kernel, and no separate mitigation is stated beyond not mounting untrusted or corrupted nilfs2 images. The vuln.today decision label is act_now, while the assessed exposure is limited to systems that actually use nilfs2 and to actors with local access or the ability to introduce a crafted image. References include https://git.kernel.org/stable/c/07f671d13067e68dbc840e46027668293c1c3a80 and https://nvd.nist.gov/vuln/detail/CVE-2026-138871.
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
nilfs2 is a log-structured filesystem in the Linux kernel. Its readdir implementation uses ctx->pos, which userspace controls through llseek(), as an offset into a directory folio and parses the bytes at that offset as a directory entry without first validating that the position lies on a valid entry boundary. An unaligned position, or one pointing into unused or unvalidated bytes of a corrupted or crafted image, can make dir_emit() copy a bogus name_len of up to 255 bytes, reading past the folio and returning unrelated kernel memory to userspace; the same condition can produce an out-of-bounds read fault. The fix adds nilfs_validate_entry(), which walks the rec_len chain from the chunk start to snap positions onto a valid entry boundary, mirroring ext2_validate_entry(). No CWE is assigned in the supplied data. Affected version ranges are given by EUVD as commit 2ba466d74ed74f073257f86e61519cb8f8f46184 through the listed fixed commits; fixed releases include 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.63, 7.3.4, and 7.4-rc1. The supplied CVSS is internally inconsistent: NVD scores AV:N/PR:N/AC:L at 9.1, whereas the assessed vector is AV:L/PR:L/AC:L with C:H/I:N/A:L; the evidence supports local access to a mounted filesystem, not network reachability.
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:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Trigger is a local llseek()+readdir on a mounted nilfs2 directory, so AV:L and PR:L; out-of-bounds read leaks kernel memory (C:H) and may fault (A:L), with no integrity impact.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
4DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: validate directory position after llseek in readdir
nilfs_readdir() uses ctx->pos, which userspace can set to an arbitrary value via llseek, as an offset into the directory folio and parses whatever bytes sit there as a directory entry. A position pointing into the middle of an entry -- or at unused bytes of a corrupted image that the page validator never inspected -- makes dir_emit() copy up to 255 (name_len) bytes from a bogus entry, possibly reading past the end of the folio and returning unrelated memory contents to userspace.
Snap unaligned positions onto a valid entry boundary by walking the rec_len chain from the chunk start before parsing, as ext2 does in ext2_validate_entry().
[ryusuke: fixed offset wrap-around in nilfs_validate_entry() and conformed AI tag to guidelines]
Executive ViewAI
A critical information disclosure vulnerability (CVE-2026-138871) in the Linux kernel's nilfs2 filesystem could allow a local attacker to read sensitive kernel memory if they can access a mounted nilfs2 volume. However, nilfs2 is rarely used in enterprise environments, and no public exploit has been identified, so the risk is low for most organizations. Leadership should ensure that any systems using nilfs2 are patched promptly and consider whether nilfs2 is needed at all.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-138574
GHSA-hx5v-78q3-66vp
NVD
CVE.org
EPSS
Exploit-DB