CVE-2021-47507
nfsd: Fix nsfd startup race (again)
Mitigation
- Upgrade Linux to 5.12 or later.
Who should check
- Anyone running Linux >= 8677e99150b0830d29cc1318b4cc559e176940bb, < f5734b1714ca355703e9ea8fb61d04beff1790b9; >= 7c7cb07d4affcf41749234fe9dc4d90cd3959e32, < c520943a00ad5015704969ad3304c956bcd49d25; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < 8bf902fee5893cfc2f04a698abab47629699ae9a; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < b10252c7ae9c9d7c90552f88b544a44ee773af64; 4d41f65efeec0a6da6088341203c81e49ebfcd90; >= 5.4.102, < 5.4.165; >= 5.10.20, < 5.10.85; >= 5.11.3, < 5.12
- Anyone running Linux 5.12
Vulnerability facts
- Affected
- Linux >= 8677e99150b0830d29cc1318b4cc559e176940bb, < f5734b1714ca355703e9ea8fb61d04beff1790b9; >= 7c7cb07d4affcf41749234fe9dc4d90cd3959e32, < c520943a00ad5015704969ad3304c956bcd49d25; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < 8bf902fee5893cfc2f04a698abab47629699ae9a; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < b10252c7ae9c9d7c90552f88b544a44ee773af64; 4d41f65efeec0a6da6088341203c81e49ebfcd90; >= 5.4.102, < 5.4.165; >= 5.10.20, < 5.10.85; >= 5.11.3, < 5.12; Linux 5.12
- Fixed in
- Linux 8bf902fee5893cfc2f04a698abab47629699ae9a, Linux 5.4.165, Linux 5.10.85, Linux 5.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-362
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: Fix nsfd startup race (again) Commit bd5ae9288d64 ("nfsd: register pernet ops last, unregister first") has re-opened rpc_pipefs_event() race against nfsd_net_id registration (register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76 ("nfsd: fix nsfd startup race triggering BUG_ON"). Restore the order of register_pernet_subsys() vs register_cld_notifier(). Add WARN_ON() to prevent a future regression. Crash info: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000012 CPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1 pc : rpc_pipefs_event+0x54/0x120 [nfsd] lr : rpc_pipefs_event+0x48/0x120 [nfsd] Call trace: rpc_pipefs_event+0x54/0x120 [nfsd] blocking_notifier_call_chain rpc_fill_super get_tree_keyed rpc_fs_get_tree vfs_get_tree do_mount ksys_mount __arm64_sys_mount el0_svc_handler el0_svc
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8677e99150b0830d29cc1318b4cc559e176940bb, < f5734b1714ca355703e9ea8fb61d04beff1790b9; >= 7c7cb07d4affcf41749234fe9dc4d90cd3959e32, < c520943a00ad5015704969ad3304c956bcd49d25; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < 8bf902fee5893cfc2f04a698abab47629699ae9a; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < b10252c7ae9c9d7c90552f88b544a44ee773af64; 4d41f65efeec0a6da6088341203c81e49ebfcd90; >= 5.4.102, < 5.4.165; >= 5.10.20, < 5.10.85; >= 5.11.3, < 5.12 | — | cvelist |
| Linux | 5.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47507. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47507.md Affected: Linux >= 8677e99150b0830d29cc1318b4cc559e176940bb, < f5734b1714ca355703e9ea8fb61d04beff1790b9; >= 7c7cb07d4affcf41749234fe9dc4d90cd3959e32, < c520943a00ad5015704969ad3304c956bcd49d25; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < 8bf902fee5893cfc2f04a698abab47629699ae9a; >= bd5ae9288d6451bd346a1b4… Fixed in: Linux 8bf902fee5893cfc2f04a698abab47629699ae9a, Linux 5.4.165, Linux 5.10.85, Linux 5.12 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.
References
FAQ
Is CVE-2021-47507 being exploited?
There is no confirmed exploitation: CVE-2021-47507 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47507?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2021-47507?
Linux >= 8677e99150b0830d29cc1318b4cc559e176940bb, < f5734b1714ca355703e9ea8fb61d04beff1790b9; >= 7c7cb07d4affcf41749234fe9dc4d90cd3959e32, < c520943a00ad5015704969ad3304c956bcd49d25; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < 8bf902fee5893cfc2f04a698abab47629699ae9a; >= bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, < b10252c7ae9c9d7c90552f88b544a44ee773af64; 4d41f65efeec0a6da6088341203c81e49ebfcd90; >= 5.4.102, < 5.4.165; >= 5.10.20, < 5.10.85; >= 5.11.3, < 5.12; Linux 5.12.
Is there a fix for CVE-2021-47507?
Yes. Fixed in Linux 8bf902fee5893cfc2f04a698abab47629699ae9a, Linux 5.4.165, Linux 5.10.85, Linux 5.12. Upgrade Linux to 5.12 or later.
How do I check if I'm affected by CVE-2021-47507?
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.