CVE-2021-47507

nfsd: Fix nsfd startup race (again)

MEDIUM
4.7
CVSS Score
Published: May 24, 2024 at 03:01 PM UTC
Updated: June 17, 2026 at 04:17 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
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

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

v ≥ 5.11.35.10.20 ≤ v < 5.10.855.11.3 ≤ v < 5.125.11.3 ≤ v < 5.15.85.12 ≤ v < 5.15.85.12 ≤ v < 5.165.4.102 ≤ v < 5.4.1654d41f65efeec0a6da6088341203c81e49ebfcd905.10.205.11.35.125.16 rc15.16 rc25.16 rc35.16 rc45.4.1027c7cb07d4affcf41749234fe9dc4d90cd3959e328677e99150b0830d29cc1318b4cc559e176940bbbd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7
Vendor states this is fixed in 8bf902fee5893cfc2f04a698abab47629699ae9a (fixed)
Vendor states this is fixed in b10252c7ae9c9d7c90552f88b544a44ee773af64 (fixed)
Vendor states this is fixed in c520943a00ad5015704969ad3304c956bcd49d25 (fixed)
Vendor states this is fixed in f5734b1714ca355703e9ea8fb61d04beff1790b9 (fixed)
Vendor states this is fixed in 5.10.85 (unaffected)
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 5.15.8 (unaffected)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 5.4.165 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-362

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