# CVE-2023-54276: nfsd: move init of percpu reply\_cache\_stats counters back to nfsd\_init\_net

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:16:05.020Z
- **Modified:** 2026-06-17T06:47:08.507Z

## Who should check

- Anyone running Linux \>= 4e18b58b106e34ac69d3052dd91f520bd83cf2fc, \< 3025d489f9c8984d1bf5916c4a20097ed80fca5c; \>= 70fdee548c036c6bdb496f284c9e78f1654b6dd0, \< 8549384d0f65981761fe2077d04fa2a8d37b54e0; \>= e7e571ed4ec7bb50136233d8e7b986efef2af8c1, \< 66a178177b2b3bb1d71e854c5e7bbb320eb0e566; \>= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, \< 768c408594b52d8531e1a8ab62e5620c19213e73; \>= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, \< ed9ab7346e908496816cffdecd46932035f66e2e
- Anyone running Linux 6.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: move init of percpu reply\_cache\_stats counters back to nfsd\_init\_net

Commit f5f9d4a314da ("nfsd: move reply cache initialization into nfsd
startup") moved the initialization of the reply cache into nfsd startup,
but didn't account for the stats counters, which can be accessed before
nfsd is ever started. The result can be a NULL pointer dereference when
someone accesses /proc/fs/nfsd/reply\_cache\_stats while nfsd is still
shut down.

This is a regression and a user-triggerable oops in the right situation:

- non-x86\_64 arch
- /proc/fs/nfsd is mounted in the namespace
- nfsd is not started in the namespace
- unprivileged user calls "cat /proc/fs/nfsd/reply\_cache\_stats"

Although this is easy to trigger on some arches (like aarch64), on
x86\_64, calling this\_cpu\_ptr(NULL) evidently returns a pointer to the
fixed\_percpu\_data. That struct looks just enough like a newly
initialized percpu var to allow nfsd\_reply\_cache\_stats\_show to access
it without Oopsing.

Move the initialization of the per-net+per-cpu reply-cache counters
back into nfsd\_init\_net, while leaving the rest of the reply cache
allocations to be done at nfsd startup time.

Kudos to Eirik who did most of the legwork to track this down.

## Affected and fixed versions

- Linux: \>= 4e18b58b106e34ac69d3052dd91f520bd83cf2fc, \< 3025d489f9c8984d1bf5916c4a20097ed80fca5c; \>= 70fdee548c036c6bdb496f284c9e78f1654b6dd0, \< 8549384d0f65981761fe2077d04fa2a8d37b54e0; \>= e7e571ed4ec7bb50136233d8e7b986efef2af8c1, \< 66a178177b2b3bb1d71e854c5e7bbb320eb0e566; \>= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, \< 768c408594b52d8531e1a8ab62e5620c19213e73; \>= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, \< ed9ab7346e908496816cffdecd46932035f66e2e (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54276.md
Affected: Linux >= 4e18b58b106e34ac69d3052dd91f520bd83cf2fc, < 3025d489f9c8984d1bf5916c4a20097ed80fca5c; >= 70fdee548c036c6bdb496f284c9e78f1654b6dd0, < 8549384d0f65981761fe2077d04fa2a8d37b54e0; >= e7e571ed4ec7bb50136233d8e7b986efef2af8c1, < 66a178177b2b3bb1d71e854c5e7bbb320eb0e566; >= f5f9d4a314da88c0a5faa6d…
Fixed in: Linux 3025d489f9c8984d1bf5916c4a20097ed80fca5c, Linux 8549384d0f65981761fe2077d04fa2a8d37b54e0, Linux 66a178177b2b3bb1d71e854c5e7bbb320eb0e566, Linux 768c408594b52d8531e1a8ab62e5620c19213e73

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-2023-54276 being exploited?

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

### How serious is CVE-2023-54276?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54276?

Linux \>= 4e18b58b106e34ac69d3052dd91f520bd83cf2fc, \< 3025d489f9c8984d1bf5916c4a20097ed80fca5c; \>= 70fdee548c036c6bdb496f284c9e78f1654b6dd0, \< 8549384d0f65981761fe2077d04fa2a8d37b54e0; \>= e7e571ed4ec7bb50136233d8e7b986efef2af8c1, \< 66a178177b2b3bb1d71e854c5e7bbb320eb0e566; \>= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, \< 768c408594b52d8531e1a8ab62e5620c19213e73; \>= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, \< ed9ab7346e908496816cffdecd46932035f66e2e; Linux 6.3.

### Is there a fix for CVE-2023-54276?

Yes. Fixed in Linux 3025d489f9c8984d1bf5916c4a20097ed80fca5c, Linux 8549384d0f65981761fe2077d04fa2a8d37b54e0, Linux 66a178177b2b3bb1d71e854c5e7bbb320eb0e566, Linux 768c408594b52d8531e1a8ab62e5620c19213e73. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54276?

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

- other: <https://git.kernel.org/stable/c/3025d489f9c8984d1bf5916c4a20097ed80fca5c>
- other: <https://git.kernel.org/stable/c/8549384d0f65981761fe2077d04fa2a8d37b54e0>
- other: <https://git.kernel.org/stable/c/66a178177b2b3bb1d71e854c5e7bbb320eb0e566>
- other: <https://git.kernel.org/stable/c/768c408594b52d8531e1a8ab62e5620c19213e73>
- other: <https://git.kernel.org/stable/c/ed9ab7346e908496816cffdecd46932035f66e2e>

## 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-2023-54276>

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