Vulnerabilities by month / December 2026

CVE-2026-143261

Published December 3, 2026

What it is

A flaw in how the Linux kernel lists the contents of some in-memory folders (such as tmpfs) can skip or repeat files after a rename, because it walks the files in a different order from the one it uses to resume a listing.

Written in plain English by AI from the official record. Show the official wording

In the Linux kernel, the following vulnerability has been resolved: libfs: walk offset directories in offset order offset_iterate_dir() walks d_children from the head and only uses the maple tree to map ctx->pos back to a dentry when a getdents64() call resumes. offset_dir_lookup() finds the entry at ctx->pos, or the one with the next lower offset if it is gone, and the list walk continues from there. That only works if list order and offset order agree and quite often they don't. A rename over an existing name gives the moved dentry the offset of the name it replaced but __d_move() puts it at the head of d_children. RENAME_EXCHANGE does the same to both dentries. And once the cyclic offset allocator wraps new entries get low offsets at the head of the list. So if the entry at ctx->pos is unlinked between two getdents64() calls we resume at the entry with the next lower offset and that one can sit anywhere in the list: (1) If it sits further down the list everything in between is skipped. Create y, t, a, b and rename b over t. The list is now t(4) a(5) y(3). Stop the listing at t and unlink t. The next call resumes at y and a is never returned although nobody touched it. (2) If there is no lower entry we restart at the head and return the whole directory again. Nickolai reported this for the simple case of unlinking the oldest entry while a listing is about to reach it. Ending the walk there instead turns this into (1): create a, b, c, rename c over a, stop the listing at the renamed entry, unlink it, and b is lost. Instead of the list let's walk the maple tree itself in descending offset order. Then ctx->pos really means that everything above it has been emitted and resuming at the highest offset at or below it is right no matter where the dentry sits in d_children. Entries created or renamed to a new name after the listing started get an offset above ctx->pos and aren't returned, same as with the list walk which never went back to the head. So a readdir loop that renames or creates an entry for each one it reads still terminates. The maple tree can't change under us as all modifications happen with the directory's i_rwsem held exclusive and offset_readdir() holds it shared. That also covers the dentries in the tree. They are all persistent and only unlink, rmdir and rename remove or rename them. And since the previous patch i_rwsem is the lock of the tree. So keep a single ma_state across the walk and emit directly from the dentry without taking rcu_read_lock(), a reference or d_lock. This also makes the walk cheaper than the list walk was. With a million entries on tmpfs a getdents64() listing goes from 146ms to 114ms. With four processes listing the directory at the same time it goes from 470ms to 113ms per listing as they don't bounce the parent's d_lock and the dentries' lockrefs between them anymore. base v2 this 1M entries, getdents64 32k buffer (ms) 146 127 114 1M entries, getdents64 1k buffer (ms) 184 156 141 1M entries, getdents64 128b buffer (ms) 429 364 335 1M entries, ls -f (s) 0.259 0.239 0.228 1M entries, LC_ALL=C ls (s) 0.482 0.467 0.455 1M entries, 4 parallel listers (ms) 470 125 113 18 entries, rewind and list (ns) 4107 3594 3323 250k of 1M left, getdents64 32k (ms) 58.8 57.8 53.8 250k of 1M left, getdents64 128b (ms) 128 114 108

Chance of being attacked in the next 30 days: 0.2 % (EPSS).

What it affects, and the version that fixes it

  • Linux Kernel Each release has its own fixed version: 6.7, 6.13, 6.14, 7.3.7, 7.4-rc3.

The official vulnerability database has not reviewed this record yet, so this comes from the vendor's own listing and may be incomplete.

The official record (NVD) · CVE.org

Others attackers have used in the same products

  • CVE-2026-46300 Oct 28, 2026

    A flaw in how the Linux kernel merges incoming network data can make it decrypt data on top of a file's cached contents, changing them. Someone already signed in can use it, and CISA says it can be combined with two other problems to plant web shells and run commands with full control. Attackers are already using this problem.

  • CVE-2026-53266 Sep 18, 2026

    A flaw in the Linux kernel's network bridge filtering lets an address rewrite write into a file's cached contents rather than the network packet. Someone already signed in can use this to change files they should not be able to change. Attackers are already using this problem.

  • CVE-2025-39964 Sep 18, 2026

    A timing flaw in the Linux kernel's encryption interface for programs lets two writes at once leave it in an inconsistent state. Someone already signed in to the computer can trigger it. The kernel's record gives few details of what an attacker could do. Attackers are already using this problem.

  • CVE-2025-39682 Sep 18, 2026

    A flaw in how the Linux kernel receives encrypted (TLS) network data mishandles an empty record, so later data can be processed the wrong way. The kernel's record gives few details of what an attacker could do. Attackers are already using this problem, and CISA notes some affected systems may be past their support life.

  • CVE-2026-53362 Aug 27, 2026

    A flaw in how the Linux kernel builds IPv6 network packets lets a user with no special rights write past the memory set aside for them. CISA says this can be used to gain full control of the system, and attackers are already using it. It can affect many products built on Linux, including SUSE and Red Hat.

Everything attackers have used in Linux Kernel