# CVE-2021-3178: fs/nfsd/nfs3xdr.c in the Linux kernel through 5.10.8, when there is an NFS export of a subdirectory of a filesystem, allows remote attacker…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- 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): 2.45%, higher than 84% of CVEs (2026-12-01)
- Published: 2021-01-19T06:44:51.000Z
- Modified: 2026-06-17T04:04:47.713Z
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

fs/nfsd/nfs3xdr.c in the Linux kernel through 5.10.8, when there is an NFS export of a subdirectory of a filesystem, allows remote attackers to traverse to other parts of the filesystem via READDIRPLUS. NOTE: some parties argue that such a subdirectory export is not intended to prevent this attack; see also the exports(5) no_subtree_check default behavior

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- linux linux_kernel: up to 5.10.8
- fedoraproject fedora: 33
- debian debian_linux: 9.0

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:N`

## References

- <https://patchwork.kernel.org/project/linux-nfs/patch/20210111210129.GA11652%40fieldses.org/>
- <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=51b2ee7d006a736a9126e8111d1f24e4fd0afaa6> (mailing-list, patch, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5SGB7TNDVQEOJ7NVTGX56UWHDNQM5TRC/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00010.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3178](https://www.cve.org/CVERecord?id=CVE-2021-3178), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3178](https://nvd.nist.gov/vuln/detail/CVE-2021-3178), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3178 · Whole record: https://cve.day/CVE-2021-3178.json · Rebuilt by cve.day 2026-11-25T22:57:59.509Z
