CVE-2021-47507
nfsd: Fix nsfd startup race (again)
Check your servers for CVE-2021-47507
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47507 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.68% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8677e99150b0830d29cc1318b4cc559e176940bb, before f5734b1714ca355703e9ea8fb61d04beff1790b9 affected from 7c7cb07d4affcf41749234fe9dc4d90cd3959e32, before c520943a00ad5015704969ad3304c956bcd49d25 affected from bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, before 8bf902fee5893cfc2f04a698abab47629699ae9a affected from bd5ae9288d6451bd346a1b4a59d4fe7e62ba29b7, before b10252c7ae9c9d7c90552f88b544a44ee773af64 affected 4d41f65efeec0a6da6088341203c81e49ebfcd90 affected from 5.4.102, before 5.4.165 affected from 5.10.20, before 5.10.85 affected from 5.11.3, before 5.12
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.4.165 up to and including 5.4.* unaffected from 5.10.85 up to and including 5.10.* unaffected from 5.15.8 up to and including 5.15.* unaffected 5.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47507 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47507
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-47507
trivy image --scanners vuln IMAGE | grep CVE-2021-47507
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/f5734b1714ca355703e9ea8fb61d04beff1790b9 git.kernel.org
- https://git.kernel.org/stable/c/c520943a00ad5015704969ad3304c956bcd49d25 git.kernel.org
- https://git.kernel.org/stable/c/8bf902fee5893cfc2f04a698abab47629699ae9a git.kernel.org
- https://git.kernel.org/stable/c/b10252c7ae9c9d7c90552f88b544a44ee773af64 git.kernel.org
Source: the record CVE-2021-47507 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse