CVE-2026-31694 Details
Description
In the Linux kernel, the following vulnerability has been resolved: fuse: reject oversized dirents in page cache fuse_add_dirent_to_cache() computes a serialized dirent size from the server-controlled namelen field and copies the dirent into a single page-cache page. The existing logic only checks whether the dirent fits in the remaining space of the current page and advances to a fresh page if not. It never checks whether the dirent itself exceeds PAGE_SIZE. As a result, a malicious FUSE server can return a dirent with namelen=4095, producing a serialized record size of 4120 bytes. On 4 KiB page systems this causes memcpy() to overflow the cache page by 24 bytes into the following kernel page. Reject dirents that cannot fit in a single page before copying them into the readdir cache.
A vulnerability in the Linux kernel's FUSE (Filesystem in Userspace) implementation allows a malicious server to cause a buffer overflow by sending oversized directory entries. This issue arises because the kernel does not properly validate the size of directory entries before copying them into the page cache. Specifically, the vulnerability exists in versions of the Linux kernel through 6.16. Affected systems can experience a memory overflow, where data spills into adjacent kernel memory, potentially leading to undefined behavior or exploitation.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/474ce83c96a55f2eeb14dee2be375eeadfdacdf5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/51a8de6c50bf947c8f534cd73da4c8f0a13e7bed | kernel.org | Patch |
| https://git.kernel.org/stable/c/7de93abfaae1b2dc94da8a07a36421bd073f1d8f | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.20, < 6.6.136 >= 6.7, < 6.12.84 >= 6.13, < 6.18.25 >= 6.19, < 7.0.2 7.1 rc1 7.1 rc2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 2, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 1, 2026 | CVE Modified | kernel.org |
| May 6, 2026 | Initial Analysis | [email protected] |
| May 3, 2026 | CVE Modified | kernel.org |
| May 1, 2026 | New CVE Received | kernel.org |