CVE-2026-100088

tmpfs: fix unicode_map leaks in casefold option handling

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

tmpfs: fix unicode_map leaks in casefold option handling

shmem_parse_opt_casefold() stores the unicode_map returned by utf8_load()
in ctx->encoding. A filesystem context can receive the casefold parameter
more than once, and a second successful parse overwrites the stored map
without releasing it.

The map is also leaked when an unmounted filesystem context is freed.
This includes the temporary context used for remount, because
shmem_reconfigure() does not take ownership of ctx->encoding.

Reject a second casefold setting, clear ctx->encoding after transferring
ownership to the superblock, and release any remaining map from
shmem_free_fc().

An unprivileged user can repeatedly create tmpfs filesystem contexts, set
the casefold parameter, and close them from a user namespace. This causes
unbounded kernel memory consumption and can result in a local denial of
service.

Analysis

AI-generated

Technical impact

The vulnerability occurs when the casefold option for tmpfs is set multiple times, causing an internal unicode_map structure to be stored and not freed. Each additional setting leaks memory; when the filesystem context is later freed, the leaked map is also released. In an unprivileged user namespace an attacker can repeatedly create tmpfs contexts, configure casefold, and close them, leading to unbounded kernel memory usage. The resulting exhaustion can halt the system, achieving a local denial‑of‑service effect. This is a classic resource‑leak vulnerability that can be triggered by any local user that can mount tmpfs with the casefold option.

Affected Systems

All Linux kernel versions that support tmpfs with the casefold option and that have not incorporated the commit fixing the unicode_map leak are affected. The exact kernel version range is not specified in the data; however, any kernel including the certifying commit prior to the resolution is vulnerable.

Risk and Exploitability

The risk is high for local users because the flaw is exploitable without elevated privileges, relying only on the ability to create and unmount temporary filesystems within a user namespace. The absence of an EPSS score indicates no publicly available exploitation data, and the vulnerability is not listed in the CISA KEV catalog. Nonetheless, the nature of the bug allows an attacker to consume system resources until a reboot or other intervention is required. The exploit requires only basic filesystem operations and can be repeated ad‑hoc, making it a practical denial‑of‑service vector for an unprivileged local user failing to control tmpfs usage.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the patch referenced in commit 075a08d5160c1357, which removes the unicode_map leak and prevents multiple casefold settings from overwriting the stored map without freeing it.
  • If a patch is unavailable, avoid using the casefold option when mounting tmpfs; for existing mounts, remount without casefold or remount to trigger a new context that does not leak memory.
  • Restrict tmpfs mounting capabilities in user namespaces, or limit the number of mounts in environments where unprivileged users have namespace privileges.

Generated by OpenCVE AI on November 30, 2026 at 16:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-755
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tmpfs: fix unicode_map leaks in casefold option handling shmem_parse_opt_casefold() stores the unicode_map returned by utf8_load() in ctx->encoding. A filesystem context can receive the casefold parameter more than once, and a second successful parse overwrites the stored map without releasing it. The map is also leaked when an unmounted filesystem context is freed. This includes the temporary context used for remount, because shmem_reconfigure() does not take ownership of ctx->encoding. Reject a second casefold setting, clear ctx->encoding after transferring ownership to the superblock, and release any remaining map from shmem_free_fc(). An unprivileged user can repeatedly create tmpfs filesystem contexts, set the casefold parameter, and close them from a user namespace. This causes unbounded kernel memory consumption and can result in a local denial of service.
Title tmpfs: fix unicode_map leaks in casefold option handling
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-755

    Improper Handling of Exceptional Conditions

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM