CVE-2021-47316
published high CVSS 3.1 · 7.5nfsd: fix NULL dereference in nfs3svc_encode_getaclres
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd505e66191072748620fc0af038cea4e4da0e3cd to < e79057d15d96ef19de4de6d7e479bae3d58a2a8d · 20798dfe249a01ad1b12eec7dbc572db5003244a to < 650e6f383a6eb40f7c0a010982a74ab4b6893870 · 20798dfe249a01ad1b12eec7dbc572db5003244a to < ab1016d39cc052064e32f25ad18ef8767a0ee3b8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.13 (affected) · 0 to < 5.13 (unaffected · semver) · 5.13.4 through 5.13.* (unaffected · semver) · 5.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Siemens | — | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 to < V1.1.1 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: fix NULL dereference in nfs3svc_encode_getaclres In error cases the dentry may be NULL. Before 20798dfe249a, the encoder also checked dentry and d_really_is_positive(dentry), but that looks like overkill to me--zero status should be enough to guarantee a positive dentry. This isn't the first time we've seen an error-case NULL dereference hidden in the initialization of a local variable in an xdr encoder. But I went back through the other recent rewrites and didn't spot any similar bugs.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - The bug is in nfsd's NFSv3 ACL program (NFS_ACL_PROGRAM) GETACL result encoder, reached by sending RPC requests over the network to the in-kernel NFS server (TCP/UDP, typically port 2049). AC:L - An attacker reliably triggers the crash by sending a GETACL with a malformed or invalid filehandle so fh_verify fails and fh_dentry stays NULL; no race or attacker-uncontrollable condition is required. PR:N - The path is reachable with AUTH_NULL or forgeable AUTH_UNIX after only IP-based export matching, before any meaningful credential verification or valid filehandle access, matching other nfsd pre-auth/network DoS scores. UI:N - Exploitation requires only attacker-sent NFSACL GETACL RPCs; no victim user action is needed. S:U - Impact is confined to the NFS server host kernel; there is no VM escape, IOMMU bypass, or other cross-authority boundary crossing. C:N - This is a pure NULL pointer dereference of dentry->d_inode with no out-of-bounds read, UAF, or other information-disclosure primitive. I:N - The bug only crashes on NULL dereference in the encoder; it does not corrupt memory or provide a write/code-execution primitive. A:H - d_inode(NULL) causes a kernel oops/panic in nfsd, fully disrupting the NFS server and host availability, and can be repeated at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d505e66191072748620fc0af038cea4e4da0e3cd to < e79057d15d96ef19de4de6d7e479bae3d58a2a8d (affected · git)20798dfe249a01ad1b12eec7dbc572db5003244a to < 650e6f383a6eb40f7c0a010982a74ab4b6893870 (affected · git)20798dfe249a01ad1b12eec7dbc572db5003244a to < ab1016d39cc052064e32f25ad18ef8767a0ee3b8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.13 (affected)0 to < 5.13 (unaffected · semver)5.13.4 through 5.13.* (unaffected · semver)5.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 to < V1.1.1 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
0No weakness assertions.
References
5- https://cert-portal.siemens.com/productcert/html/ssa-265688.html
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html
- https://git.kernel.org/stable/c/650e6f383a6eb40f7c0a010982a74ab4b6893870
- https://git.kernel.org/stable/c/ab1016d39cc052064e32f25ad18ef8767a0ee3b8
- https://git.kernel.org/stable/c/e79057d15d96ef19de4de6d7e479bae3d58a2a8d
Provider assertions
4Linux · cna
nfsd: fix NULL dereference in nfs3svc_encode_getaclres
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0549d6601e0c451ec17a265109e6742e1aba04002068af03586f1d34e1c6370c
- Ingested
- 14 Oct 2026, 14:23:10 UTC
- Source record
- Official CVE record