CVE-2023-54276

nfsd: move init of percpu reply_cache_stats counters back to nfsd_init_net

N/A
Published: December 30, 2025 at 12:16 PM UTC
Updated: June 17, 2026 at 06:47 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.3 ≤ v < 6.4.46.3 ≤ v < 6.54e18b58b106e34ac69d3052dd91f520bd83cf2fc6.370fdee548c036c6bdb496f284c9e78f1654b6dd0e7e571ed4ec7bb50136233d8e7b986efef2af8c1f5f9d4a314da88c0a5faa6d168bf69081b7a25ae
Vendor states this is fixed in 3025d489f9c8984d1bf5916c4a20097ed80fca5c (fixed)
Vendor states this is fixed in 66a178177b2b3bb1d71e854c5e7bbb320eb0e566 (fixed)
Vendor states this is fixed in 768c408594b52d8531e1a8ab62e5620c19213e73 (fixed)
Vendor states this is fixed in 8549384d0f65981761fe2077d04fa2a8d37b54e0 (fixed)
Vendor states this is fixed in ed9ab7346e908496816cffdecd46932035f66e2e (fixed)
Vendor states this is fixed in 6.3 (unaffected)
Vendor states this is fixed in 6.4.4 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card