Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-138871

nilfs2: validate directory position after llseek in readdir

No exploitation reported by the sources we read.

  • Published2026-11-30
  • Fixed in7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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]

Timeline

dates in UTC
  1. 2026-11-3013:25CVE publishedCNA

Versions per branch

OSV
Linux kernel
BranchAffectedFixed in
7.3≥ 6.19.0, < 7.3.47.3.4
6.x≥ 6.13.0, < 6.18.636.18.63
6.x≥ 6.7.0, < 6.12.1176.12.117
6.x≥ 6.2.0, < 6.6.1636.6.163
6.1≥ 5.16.0, < 6.1.1936.1.193
5.x≥ 5.11.0, < 5.15.2265.15.226
5.10≥ 2.6.30, < 5.10.2755.10.275

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As Linux, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Linuxother versions: not affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5fixed in bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5git
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 69cf95f47a68b6920c9192a5ea3fe8c1db0a1070fixed in 69cf95f47a68b6920c9192a5ea3fe8c1db0a1070git
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 07f671d13067e68dbc840e46027668293c1c3a80fixed in 07f671d13067e68dbc840e46027668293c1c3a80git
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < a48632160cdb85adadb4b7c8429d90a9511e7e6bfixed in a48632160cdb85adadb4b7c8429d90a9511e7e6bgit
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < dc171da15e46871abac4c05b389730883c15f680fixed in dc171da15e46871abac4c05b389730883c15f680git
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < 7bcffd24502d637b348a2e460093a0cabad4554efixed in 7bcffd24502d637b348a2e460093a0cabad4554egit
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < fbcbb54a4898984192b16764943af1be262bdb4dfixed in fbcbb54a4898984192b16764943af1be262bdb4dgit
    • ≥ 2ba466d74ed74f073257f86e61519cb8f8f46184, < de7f49c12566cc5c7437a2f26c6c754b9d4d5648fixed in de7f49c12566cc5c7437a2f26c6c754b9d4d5648git
  • Linuxother versions: affected

    https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

    Affected
    • = 2.6.30no fix stated

    Not affected < 2.6.30 · ≥ 5.10.275, ≤ 5.10.* · ≥ 5.15.226, ≤ 5.15.* · ≥ 6.1.193, ≤ 6.1.* · ≥ 6.6.163, ≤ 6.6.* · ≥ 6.12.117, ≤ 6.12.* · ≥ 6.18.63, ≤ 6.18.*

    2 more version lines in the CVE record.

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-11-30

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • linuxDebian:14all versions · fixed in 7.3.4-1
  • linuxDebian:13all versions · fixed in 6.12.117-1
  • linuxDebian:12all versions · no fixed version listed

Full record on NVD

Fix

  1. Update Linux kernel to 7.3.4 · 6.18.63 · 6.12.117 · 6.6.163 · 6.1.193 · 5.15.226 · 5.10.275

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-11-30
  • CNACVSS 3.19.12026-12-01
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Published
2026-11-30
Last modified
2026-11-30
NVD status
Received

Frequently asked questions

What is CVE-2026-138871?

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]

Is CVE-2026-138871 actively exploited?

Active exploitation of CVE-2026-138871 has not been confirmed.

What is the CVSS score for CVE-2026-138871?

CVE-2026-138871 has a CVSS v3 base score of 9.1 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H.

Running Linux kernel? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record