CVE-2026-138871: Linux kernel · nilfs2: validate directory position after llseek in readdir
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 9.1 Critical.
Data as of 2 Dec 2026, 18:37 UTC
Thin evidence
One scorer or none| CNA (Linux) | CVSS 3.1 | 9.1 |
|---|
- EPSS
- 1.3% chance of exploitation in 30 days – higher than 73% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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]
References
- ubuntu.com/security/CVE-2026-138871 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-138871 (opens in a new tab)
- git.kernel.org/stable/c/de7f49c12566cc5c7437a2f26c6c754b9d4d5648 (opens in a new tab)
- git.kernel.org/stable/c/7bcffd24502d637b348a2e460093a0cabad4554e (opens in a new tab)
- git.kernel.org/stable/c/fbcbb54a4898984192b16764943af1be262bdb4d (opens in a new tab)
- git.kernel.org/stable/c/a48632160cdb85adadb4b7c8429d90a9511e7e6b (opens in a new tab)
- git.kernel.org/stable/c/07f671d13067e68dbc840e46027668293c1c3a80 (opens in a new tab)
- git.kernel.org/stable/c/bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5 (opens in a new tab)
- git.kernel.org/stable/c/dc171da15e46871abac4c05b389730883c15f680 (opens in a new tab)
- git.kernel.org/stable/c/69cf95f47a68b6920c9192a5ea3fe8c1db0a1070 (opens in a new tab)