CVE-2026-23297

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
25/03/2026
Last modified:
25/03/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().<br /> <br /> syzbot reported memory leak of struct cred. [0]<br /> <br /> nfsd_nl_threads_set_doit() passes get_current_cred() to<br /> nfsd_svc(), but put_cred() is not called after that.<br /> <br /> The cred is finally passed down to _svc_xprt_create(),<br /> which calls get_cred() with the cred for struct svc_xprt.<br /> <br /> The ownership of the refcount by get_current_cred() is not<br /> transferred to anywhere and is just leaked.<br /> <br /> nfsd_svc() is also called from write_threads(), but it does<br /> not bump file-&gt;f_cred there.<br /> <br /> nfsd_nl_threads_set_doit() is called from sendmsg() and<br /> current-&gt;cred does not go away.<br /> <br /> Let&amp;#39;s use current_cred() in nfsd_nl_threads_set_doit().<br /> <br /> [0]:<br /> BUG: memory leak<br /> unreferenced object 0xffff888108b89480 (size 184):<br /> comm "syz-executor", pid 5994, jiffies 4294943386<br /> hex dump (first 32 bytes):<br /> 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................<br /> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................<br /> backtrace (crc 369454a7):<br /> kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]<br /> slab_post_alloc_hook mm/slub.c:4958 [inline]<br /> slab_alloc_node mm/slub.c:5263 [inline]<br /> kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270<br /> prepare_creds+0x22/0x600 kernel/cred.c:185<br /> copy_creds+0x44/0x290 kernel/cred.c:286<br /> copy_process+0x7a7/0x2870 kernel/fork.c:2086<br /> kernel_clone+0xac/0x6e0 kernel/fork.c:2651<br /> __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792<br /> do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]<br /> do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94<br /> entry_SYSCALL_64_after_hwframe+0x77/0x7f

Impact