CVE-2026-138871

critical EU-CRITICAL
EUVD alias: EUVD-2026-138574
Assigned by CNA: linux
Published 2026-11-30 · Modified 2026-12-01
CVSS v3
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v4 NEW
—
not yet in upstream
VIR risk
9.1

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]

Predictions

Exploit likelihood
94%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-138871 NameCVE-2026-138871 Descriptionnilfs2: validate directory position after llseek in readdir SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) Vulnerable and fixed packages The table below lists information on source packages. Source PackageReleaseVersionStatus linux…

CVE-2026-138871

NameCVE-2026-138871
Descriptionnilfs2: validate directory position after llseek in readdir
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
linux (PTS)bookworm6.1.176-1vulnerable
bookworm (security)6.1.192-3vulnerable
trixie6.12.117-1fixed
trixie (security)6.12.118-1fixed
forky, sid7.3.6-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
linuxsourcetrixie6.12.117-1
linuxsource(unstable)7.3.4-1

Notes

https://git.kernel.org/linus/de7f49c12566cc5c7437a2f26c6c754b9d4d5648 (7.4-rc1)

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
https://git.kernel.org/linus/de7f49c12566cc5c7437a2f26c6c754b9d4d5648 (7.4-rc1)

OS impact

debian Debian Mixed 4 releases
VersionPackageStatusFixed in
trixie linux Fixed 6.12.117-1
sid linux Fixed 7.3.4-1
forky linux Fixed 7.3.4-1
bookworm linux Affected —
suse SUSE Tracked 1 release
VersionPackageStatusFixed in
— — Unknown —

Application impact

VendorProductVersionsFixed
linux linuxlinux2.6.30

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.