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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2026-11-3013:25CVE publishedCNA
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.3 | ≥ 6.19.0, < 7.3.4 | 7.3.4 | OSV |
| 6.x | ≥ 6.13.0, < 6.18.63 | 6.18.63 | OSV |
| 6.x | ≥ 6.7.0, < 6.12.117 | 6.12.117 | OSV |
| 6.x | ≥ 6.2.0, < 6.6.163 | 6.6.163 | OSV |
| 6.1 | ≥ 5.16.0, < 6.1.193 | 6.1.193 | OSV |
| 5.x | ≥ 5.11.0, < 5.15.226 | 5.15.226 | OSV |
| 5.10 | ≥ 2.6.30, < 5.10.275 | 5.10.275 | OSV |
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
Fix
- 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
- PoC-in-GitHubno public repository identifiedread 2026-12-01
- Metasploit modules
- none listed Metasploit Framework
Sources
Identifiers
- EUVD-2026-138574same flawENISA EUVD · LicenseRef-ENISA-legal-notice
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?
Is CVE-2026-138871 actively exploited?
What is the CVSS score for CVE-2026-138871?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served