Skip to main content
VulnerabilityPublished

CVE-2026-138871: Linux kernel · nilfs2: validate directory position after llseek in readdir

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in fbcbb54a4898984192b16764943af1be262bdb4d : update Linux kernel when convenient.

Data as of 30 Nov 2026, 13:46 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in fbcbb54a4898984192b16764943af1be262bdb4d, de7f49c12566cc5c7437a2f26c6c754b9d4d5648, dc171da15e46871abac4c05b389730883c15f680 +5

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 30 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < fbcbb54a4898984192b16764943af1be262bdb4d
Fixed in
  • fbcbb54a4898984192b16764943af1be262bdb4d
LinuxLinuxAffected
  • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < de7f49c12566cc5c7437a2f26c6c754b9d4d5648
Fixed in
  • de7f49c12566cc5c7437a2f26c6c754b9d4d5648
LinuxLinuxAffected
  • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < dc171da15e46871abac4c05b389730883c15f680
Fixed in
  • dc171da15e46871abac4c05b389730883c15f680
LinuxLinuxAffected
  • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5
Fixed in
  • bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5
LinuxLinuxAffected
  • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < a48632160cdb85adadb4b7c8429d90a9511e7e6b
Fixed in
  • a48632160cdb85adadb4b7c8429d90a9511e7e6b
LinuxLinuxAffected
  • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 69cf95f47a68b6920c9192a5ea3fe8c1db0a1070
Fixed in
  • 69cf95f47a68b6920c9192a5ea3fe8c1db0a1070

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

Community reviews

Loading reviews…