tmpfs: fix unicode_map leaks in casefold option handling

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux58e55efd6c72cbc3e76423a1086f7b4d6c2ae9c2 to before 075a08d5160c13571160c56aebaffb0a8ece7f36 Affected58e55efd6c72cbc3e76423a1086f7b4d6c2ae9c2 to before 543c0f3386e41326f1b1f4a3b52f97bad3663487 Affected58e55efd6c72cbc3e76423a1086f7b4d6c2ae9c2 to before f439d79e8cd19f89e04cbb3b532347edacd72c79 Affected
Linux Linux6.13 Affectedbefore 6.13 Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.