CVE-2026-23297 json
nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().
published 2026-03-25 7 mo ago modified 2026-11-05 3 d ago also EUVD-2026-15231
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 2%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit().
syzbot reported memory leak of struct cred. [0]
nfsd_nl_threads_set_doit() passes get_current_cred() to nfsd_svc(), but put_cred() is not called after that.
The cred is finally passed down to _svc_xprt_create(), which calls get_cred() with the cred for struct svc_xprt.
The ownership of the refcount by get_current_cred() is not transferred to anywhere and is just leaked.
nfsd_svc() is also called from write_threads(), but it does not bump file->f_cred there.
nfsd_nl_threads_set_doit() is called from sendmsg() and current->cred does not go away.
Let's use current_cred() in nfsd_nl_threads_set_doit().
[0]: BUG: memory leak unreferenced object 0xffff888108b89480 (size 184): comm "syz-executor", pid 5994, jiffies 4294943386 hex dump (first 32 bytes): 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 369454a7): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4958 [inline] slab_alloc_node mm/slub.c:5263 [inline] kmem_cache_alloc_noprof+0x412/0x580 mm/slub.c:5270 prepare_creds+0x22/0x600 kernel/cred.c:185 copy_creds+0x44/0x290 kernel/cred.c:286 copy_process+0x7a7/0x2870 kernel/fork.c:2086 kernel_clone+0xac/0x6e0 kernel/fork.c:2651 __do_sys_clone+0x7f/0xb0 kernel/fork.c:2792 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f
Patch / fix
- Linux Linux 6.12.77, 6.18.17, 6.19.7, 7.0
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.8-1
debian advisories DEBIAN-CVE-2026-23297
- kernel-rt Linux Micro 6.2 6.12.0-160000.28.1
- kernel-64kb Linux Micro 6.2 6.12.0-160000.28.1
- kernel-source Linux Micro 6.2 6.12.0-160000.28.1
- kernel-default Linux Micro 6.2 6.12.0-160000.28.1
- kernel-default-base Linux Micro 6.2 6.12.0-160000.27.1.160000.2.8
- gdk-pixbuf Linux Micro 6.2 2.42.12-160000.4.1
- kernel-syms Linux Micro Extras 6.2 6.12.0-160000.28.1
- kernel-obs-build Linux Micro Extras 6.2 6.12.0-160000.28.1
suse advisories SUSE-SU-2026:21237-1SUSE-SU-2026:21230-1
- kernel-rt openSUSE Leap 16.0 6.12.0-160000.28.1
- dtb-aarch64 openSUSE Leap 16.0 6.12.0-160000.28.1
- kernel-64kb openSUSE Leap 16.0 6.12.0-160000.28.1
- kernel-syms openSUSE Leap 16.0 6.12.0-160000.28.1
- kernel-azure openSUSE Leap 16.0 6.12.0-160000.28.1
- kernel-obs-qa openSUSE Leap 16.0 6.12.0-160000.28.1
- kernel-source openSUSE Leap 16.0 6.12.0-160000.28.1
- kernel-default openSUSE Leap 16.0 6.12.0-160000.28.1
opensuse advisories openSUSE-SU-2026:20572-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-23297 updated cvss 5.5
kernel: nfsd: Fix cred ref leak in nfsd_nl_threads_set_doit()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 d ago
Exploit prediction
0.13% chance of exploitation in the next 30 days, higher than 2% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-401 Missing Release of Memory after Effective Lifetime
- Technology feeds
References
Sources
- CVE List CVE-2026-23297
- NVD CVE-2026-23297
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.