CVE-2021-47507
Severity CVSS v4.0:
Pending analysis
Type:
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
24/05/2024
Last modified:
24/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
nfsd: Fix nsfd startup race (again)<br />
<br />
Commit bd5ae9288d64 ("nfsd: register pernet ops last, unregister first")<br />
has re-opened rpc_pipefs_event() race against nfsd_net_id registration<br />
(register_pernet_subsys()) which has been fixed by commit bb7ffbf29e76<br />
("nfsd: fix nsfd startup race triggering BUG_ON").<br />
<br />
Restore the order of register_pernet_subsys() vs register_cld_notifier().<br />
Add WARN_ON() to prevent a future regression.<br />
<br />
Crash info:<br />
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000012<br />
CPU: 8 PID: 345 Comm: mount Not tainted 5.4.144-... #1<br />
pc : rpc_pipefs_event+0x54/0x120 [nfsd]<br />
lr : rpc_pipefs_event+0x48/0x120 [nfsd]<br />
Call trace:<br />
rpc_pipefs_event+0x54/0x120 [nfsd]<br />
blocking_notifier_call_chain<br />
rpc_fill_super<br />
get_tree_keyed<br />
rpc_fs_get_tree<br />
vfs_get_tree<br />
do_mount<br />
ksys_mount<br />
__arm64_sys_mount<br />
el0_svc_handler<br />
el0_svc
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.4.102 (including) | 5.4.165 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.10.20 (including) | 5.10.85 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11.3 (including) | 5.15.8 (excluding) |
| cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.16:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.16:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.16:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a
- https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64
- https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25
- https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9
- https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a
- https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64
- https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25
- https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9



