CVE-2026-31694
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
26- osv-coords22 versionspkg:apk/chainguard/linux-aws-6.18pkg:apk/chainguard/linux-azure-6.18pkg:apk/chainguard/linux-gcp-6.18pkg:apk/chainguard/linux-qemu-6.18pkg:apk/chainguard/linux-qemu-rcpkg:apk/chainguard/linux-vmware-6.18pkg:rpm/opensuse/kernel-source&distro=openSUSE%20Tumbleweedpkg:rpm/suse/kernel-livepatch-SLE15-SP4_Update_40&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP4pkg:rpm/suse/kernel-livepatch-SLE15-SP4_Update_46&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP4pkg:rpm/suse/kernel-livepatch-SLE15-SP4_Update_47&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP4pkg:rpm/suse/kernel-livepatch-SLE15-SP4_Update_50&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP4pkg:rpm/suse/kernel-livepatch-SLE15-SP5_Update_26&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP5pkg:rpm/suse/kernel-livepatch-SLE15-SP5_Update_30&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP5pkg:rpm/suse/kernel-livepatch-SLE15-SP6_Update_12&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP6pkg:rpm/suse/kernel-livepatch-SLE15-SP6_Update_18&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP6pkg:rpm/suse/kernel-livepatch-SLE15-SP6_Update_22&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP6pkg:rpm/suse/kernel-livepatch-SLE15-SP6_Update_23&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP6pkg:rpm/suse/kernel-livepatch-SLE15-SP7-RT_Update_11&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP7pkg:rpm/suse/kernel-livepatch-SLE15-SP7-RT_Update_1&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP7pkg:rpm/suse/kernel-livepatch-SLE15-SP7-RT_Update_8&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP7pkg:rpm/suse/kernel-livepatch-SLE15-SP7_Update_11&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP7pkg:rpm/suse/kernel-livepatch-SLE15-SP7_Update_14&distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP7
< 6.18.31-r0+ 21 more
- (no CPE)range: < 6.18.31-r0
- (no CPE)range: < 6.18.31-r0
- (no CPE)range: < 6.18.31-r0
- (no CPE)range: < 6.18.24-r3
- (no CPE)range: < 7.1_rc3-r0
- (no CPE)range: < 6.18.31-r0
- (no CPE)range: < 7.0.7-1.1
- (no CPE)range: < 21-150400.2.1
- (no CPE)range: < 9-150400.2.1
- (no CPE)range: < 9-150400.2.1
- (no CPE)range: < 5-150400.2.1
- (no CPE)range: < 21-150500.2.1
- (no CPE)range: < 14-150500.2.1
- (no CPE)range: < 19-150600.2.1
- (no CPE)range: < 8-150600.2.1
- (no CPE)range: < 5-150600.2.1
- (no CPE)range: < 4-150600.2.1
- (no CPE)range: < 5-150700.2.1
- (no CPE)range: < 18-150700.2.1
- (no CPE)range: < 8-150700.2.1
- (no CPE)range: < 5-150700.2.1
- (no CPE)range: < 2-150700.2.1
Patches
Vulnerability mechanics
References
8- git.kernel.org/stable/c/45c05af36311624c1148123caeb011312495d86bnvdPatch
- git.kernel.org/stable/c/474ce83c96a55f2eeb14dee2be375eeadfdacdf5nvdPatch
- git.kernel.org/stable/c/51a8de6c50bf947c8f534cd73da4c8f0a13e7bednvdPatch
- git.kernel.org/stable/c/7de93abfaae1b2dc94da8a07a36421bd073f1d8fnvdPatch
- git.kernel.org/stable/c/d23ad78bfd205eac26766e38ba7d79f279131098nvdPatch
- git.kernel.org/stable/c/038e61812fa52ef62bad2cfc96bf37dc0db47c1envd
- git.kernel.org/stable/c/1d4a517fa90480c52fd452fea2686cd80f773ce2nvd
- git.kernel.org/stable/c/3059f9abe7f1ba8fddf3c86c5faa1eeacf07e7d4nvd
News mentions
1- Patch Tuesday - May 2026Rapid7 Blog · May 13, 2026