# CVE-2026-23297: nfsd: Fix cred ref leak in nfsd\_nl\_threads\_set\_doit().

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2026-03-25T10:26:54.156Z
- **Modified:** 2026-11-05T22:18:12.583Z

## Who should check

- Anyone running Linux \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 41170716421c25cd20b39e83f0e0762e212b377b; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 27c13c5bb0948e3b5c64e59f8a903231896fab9b; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< a3f88e3e18b51a7f654189189c762ebcdeaa7e29; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 1cb968a2013ffa8112d52ebe605009ea1c6a582c
- Anyone running Linux 6.10

## Description

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

## Affected and fixed versions

- Linux: \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 41170716421c25cd20b39e83f0e0762e212b377b; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 27c13c5bb0948e3b5c64e59f8a903231896fab9b; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< a3f88e3e18b51a7f654189189c762ebcdeaa7e29; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 1cb968a2013ffa8112d52ebe605009ea1c6a582c (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 1cb968a2013ffa8112d52ebe605009ea1c6a582c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23297. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23297.md
Affected: Linux >= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, < 41170716421c25cd20b39e83f0e0762e212b377b; >= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, < 27c13c5bb0948e3b5c64e59f8a903231896fab9b; >= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, < a3f88e3e18b51a7f654189189c762ebcdeaa7e29; >= 924f4fb003ba114c60b3c07…
Fixed in: Linux 41170716421c25cd20b39e83f0e0762e212b377b, Linux 27c13c5bb0948e3b5c64e59f8a903231896fab9b, Linux 1cb968a2013ffa8112d52ebe605009ea1c6a582c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23297 being exploited?

There is no confirmed exploitation: CVE-2026-23297 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-23297?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-23297?

Linux \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 41170716421c25cd20b39e83f0e0762e212b377b; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 27c13c5bb0948e3b5c64e59f8a903231896fab9b; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< a3f88e3e18b51a7f654189189c762ebcdeaa7e29; \>= 924f4fb003ba114c60b3c07a011dcd86a8956cd1, \< 1cb968a2013ffa8112d52ebe605009ea1c6a582c; Linux 6.10.

### Is there a fix for CVE-2026-23297?

Yes. Fixed in Linux 41170716421c25cd20b39e83f0e0762e212b377b, Linux 27c13c5bb0948e3b5c64e59f8a903231896fab9b, Linux 1cb968a2013ffa8112d52ebe605009ea1c6a582c. Upgrade Linux to 1cb968a2013ffa8112d52ebe605009ea1c6a582c or later.

### How do I check if I'm affected by CVE-2026-23297?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/41170716421c25cd20b39e83f0e0762e212b377b>
- patch: <https://git.kernel.org/stable/c/27c13c5bb0948e3b5c64e59f8a903231896fab9b>
- patch: <https://git.kernel.org/stable/c/a3f88e3e18b51a7f654189189c762ebcdeaa7e29>
- patch: <https://git.kernel.org/stable/c/1cb968a2013ffa8112d52ebe605009ea1c6a582c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23297>

HTML: <https://flawdb.com/CVE-2026-23297> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23297>
