CVE-2023-54276
Last modified
CVE-2023-54276 is a vulnerability of currently unknown severity. 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 4e18b58b106e34ac69d3052dd91f520bd83cf2fc, < 3025d489f9c8984d1bf5916c4a20097ed80fca5c; >= 70fdee548c036c6bdb496f284c9e78f1654b6dd0, < 8549384d0f65981761fe2077d04fa2a8d37b54e0; >= e7e571ed4ec7bb50136233d8e7b986efef2af8c1, < 66a178177b2b3bb1d71e854c5e7bbb320eb0e566; >= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, < 768c408594b52d8531e1a8ab62e5620c19213e73; >= f5f9d4a314da88c0a5faa6d168bf69081b7a25ae, < ed9ab7346e908496816cffdecd46932035f66e2e |
| Linux | Linux | 6.3 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2023-54276?
How severe is CVE-2023-54276?
How do I fix CVE-2023-54276?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-54270In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54271In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54272In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54273In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54274In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54275In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54277In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54278In the Linux kernel, the following vulnerability has been re…
- CVE-2023-54279In the Linux kernel, the following vulnerability has been re…
- CVE-2023-5428The Image vertical reel scroll slideshow plugin for WordPres…6.5
- CVE-2023-54280In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2023-54281In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2023-54276?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
