StraitOfVuln
Latest / CVE-2026-138871

CVE-2026-138871

CriticalCVSS 9.1 (v3.1)Received
CVE.org ↗NVD ↗

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]

Details

CVE ID
CVE-2026-138871
Published / updated
30 Nov 2026, 14:17 UTC · last modified 01 Dec 2026, 06:17 UTC
Severity
CRITICAL
CVSS score
9.1 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H · Attack vector: Network
Affected vendor
Linux
Affected products
Linux
Affected versions
Linux: 2ba466d74ed74f073257f86e61519cb8f8f46184 to before bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 69cf95f47a68b6920c9192a5ea3fe8c1db0a1070, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 07f671d13067e68dbc840e46027668293c1c3a80, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before a48632160cdb85adadb4b7c8429d90a9511e7e6b, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before dc171da15e46871abac4c05b389730883c15f680, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 7bcffd24502d637b348a2e460093a0cabad4554e, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before fbcbb54a4898984192b16764943af1be262bdb4d, 2ba466d74ed74f073257f86e61519cb8f8f46184 to before de7f49c12566cc5c7437a2f26c6c754b9d4d5648
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
Linux bdfc5b64f8f606df9c1dc18c2e00200884c8e6f5, Linux 69cf95f47a68b6920c9192a5ea3fe8c1db0a1070, Linux 07f671d13067e68dbc840e46027668293c1c3a80, Linux a48632160cdb85adadb4b7c8429d90a9511e7e6b, Linux dc171da15e46871abac4c05b389730883c15f680, Linux 7bcffd24502d637b348a2e460093a0cabad4554e, Linux fbcbb54a4898984192b16764943af1be262bdb4d, Linux de7f49c12566cc5c7437a2f26c6c754b9d4d5648
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
1.38% probability of exploitation in the next 30 days · 73% percentile (03 Dec 2026)
Weakness
—
Remediation
See the vendor advisory below.
Source (CNA)
416baaa9-dc9f-4396-8d5f-8c081fb06d67