PatchSiren

PatchSiren cyber security CVE debrief

CVE-2021-47107 Linux CVE debrief

CVE-2021-47107 is a Linux kernel NFSD memory-corruption issue in the READDIR path. According to NVD and the kernel fix notes, a too-small READDIR count can underflow the buffer-size calculation in the new init_dirlist helper, which can then allow XDR reserve/write logic to go past the intended buffer. NVD rates the issue 7.8 HIGH and lists affected Linux kernel builds in the 5.13 to 5.15.12 range, plus 5.16-rc1 through 5.16-rc6.

Vendor
Linux
Product
Unknown
CVSS
CRITICAL 9.8
CISA KEV
Not listed in stored evidence
Original CVE published
2024-03-04
Original CVE updated
2026-08-04
Advisory published
2024-03-04
Advisory updated
2026-08-04

Who should care

Linux distribution maintainers, kernel teams, and operators running NFSD/NFS services on Linux should treat this as a priority kernel fix. Any environment that exposes affected kernel builds through NFS server functionality should verify it has the patched code path.

Technical summary

The bug is an arithmetic underflow in the READDIR buffer-size handling used by the NFSD init_dirlist helper. The kernel description says the old entry encoders avoided the issue, but the newer entry-encoding path exposed the underflow to xdr_reserve_space() pointer arithmetic, creating an out-of-bounds write condition when the READDIR count argument is too small. NVD classifies the weakness as CWE-120 and assigns CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Defensive priority

High

Recommended defensive actions

  • Check whether any Linux systems in your fleet run affected kernel versions or vendor backports derived from the vulnerable range.
  • Deploy a kernel build that includes the linked stable fixes for the NFSD READDIR issue.
  • Prioritize NFS server hosts, storage appliances, and images that enable NFSD for emergency patching and validation.
  • Use your distro or vendor security advisories to confirm the fix is backported, rather than relying only on upstream version numbers.
  • After patching, validate normal NFS directory listing behavior in staging and production monitoring to confirm service stability.

Evidence notes

This debrief is based only on the supplied NVD record and the linked official kernel/stable references. The NVD description states that a too-small READDIR count can underflow the buffer-size calculation in init_dirlist and lead to writes beyond the actual buffer. NVD’s vulnerable CPE criteria list Linux kernel versions from 5.13 through 5.15.12 and 5.16-rc1 through 5.16-rc6. The record also links stable kernel commits and a Siemens advisory reference, which were used only as corroborating official references.

Sources and references

Verified primary and authoritative sources

  • CVE-2021-47107 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2021-47107

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2021-47107 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2021-47107

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/53b1119a6e5028b125f431a0116ba73510d82a72

    416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Exploit, Mailing List, Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/9e291a6a28d32545ed2fd959a8165144d1724df1

    416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Exploit, Mailing List, Patch

  • Mitigation or vendor reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/eabc0aab98e5218ceecd82069b0d6fdfff5ee885

    416baaa9-dc9f-4396-8d5f-8c081fb06d67 - Exploit, Mailing List, Patch

  • Source reference

    Unverified legacy reference

    URL: https://cert-portal.siemens.com/productcert/html/ssa-265688.html

    0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.