# CVE-2021-47316: nfsd: fix NULL dereference in nfs3svc_encode_getaclres

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:32.564Z
- Modified: 2026-10-14T13:17:13.620Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d505e66191072748620fc0af038cea4e4da0e3cd before e79057d15d96ef19de4de6d7e479bae3d58a2a8d; from 20798dfe249a01ad1b12eec7dbc572db5003244a before 650e6f383a6eb40f7c0a010982a74ab4b6893870; from 20798dfe249a01ad1b12eec7dbc572db5003244a before ab1016d39cc052064e32f25ad18ef8767a0ee3b8; 5.13 (not affected: before 5.13; from 5.13.4 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from 5.13 before 5.13.4

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/e79057d15d96ef19de4de6d7e479bae3d58a2a8d> (patch)
- <https://git.kernel.org/stable/c/650e6f383a6eb40f7c0a010982a74ab4b6893870> (patch)
- <https://git.kernel.org/stable/c/ab1016d39cc052064e32f25ad18ef8767a0ee3b8> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2021-47316](https://www.cve.org/CVERecord?id=CVE-2021-47316), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2021-47316](https://nvd.nist.gov/vuln/detail/CVE-2021-47316), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-47316 · Whole record: https://cve.day/CVE-2021-47316.json · Rebuilt by cve.day 2026-11-25T22:58:08.792Z
