{"id":"CVE-2026-31694","published":"2026-05-01T13:53:36Z","modified":"2026-10-15T01:17:53Z","title":"fuse: reject oversized dirents in page cache","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: reject oversized dirents in page cache\n\nfuse_add_dirent_to_cache() computes a serialized dirent size from the\nserver-controlled namelen field and copies the dirent into a single\npage-cache page. The existing logic only checks whether the dirent fits\nin the remaining space of the current page and advances to a fresh page\nif not. It never checks whether the dirent itself exceeds PAGE_SIZE.\n\nAs a result, a malicious FUSE server can return a dirent with\nnamelen=4095, producing a serialized record size of 4120 bytes. On 4 KiB\npage systems this causes memcpy() to overflow the cache page by 24 bytes\ninto the following kernel page.\n\nReject dirents that cannot fit in a single page before copying them into\nthe readdir cache.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00177,"percentile":0.04314,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7de93abfaae1b2dc94da8a07a36421bd073f1d8f","tags":[]},{"url":"https://git.kernel.org/stable/c/474ce83c96a55f2eeb14dee2be375eeadfdacdf5","tags":[]},{"url":"https://git.kernel.org/stable/c/51a8de6c50bf947c8f534cd73da4c8f0a13e7bed","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":0.86},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-06-30","earliestUrl":"https://github.com/0xCyberstan/CVE-2026-31694-POC","repos":[{"name":"0xCyberstan/CVE-2026-31694-POC","url":"https://github.com/0xCyberstan/CVE-2026-31694-POC","stars":18,"created":"2026-06-30"}]},"first":{"date":"2026-06-30","source":"PoC-in-GitHub","url":"https://github.com/0xCyberstan/CVE-2026-31694-POC"},"provenance":"source"},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 27992ef80770d61a57f6c3a551735b08cefdffa3, < 7de93abfaae1b2dc94da8a07a36421bd073f1d8f",">= 27992ef80770d61a57f6c3a551735b08cefdffa3, < 474ce83c96a55f2eeb14dee2be375eeadfdacdf5",">= 27992ef80770d61a57f6c3a551735b08cefdffa3, < 51a8de6c50bf947c8f534cd73da4c8f0a13e7bed"]},{"vendor":"Linux","product":"Linux","versions":["6.15"]}],"euvd":{"id":"EUVD-2026-26503","exploited":false,"provenance":"source"}}