Skip to main content
← All vulnerabilities
CVE-2021-47179

NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.12, 4.9.271, 4.14.235, 4.19.193, 5.4.124, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

In the Linux kernel, the following vulnerability has been resolved: NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return() Commit de144ff4234f changes _pnfs_return_layout() to call pnfs_mark_matching_lsegs_return() passing NULL as the struct pnfs_layout_range argument. Unfortunately, pnfs_mark_matching_lsegs_return() doesn't check if we have a value here before dereferencing it, causing an oops. I'm able to hit this crash consistently when running connectathon basic tests on NFS v4.1/v4.2 against Ontap.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.11.20 · fixed in 5.12

  • Linux Linux

    From 4.9.269 · fixed in 4.9.271; From 4.14.233 · fixed in 4.14.235; From 4.19.191 · fixed in 4.19.193; From 5.4.118 · fixed in 5.4.124; From 5.10.36 · fixed in 5.10.42; From 5.12.3 · fixed in 5.12.9

References 7

git.kernel.org