NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-476.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.11.20 to before 5.12 | 5.12 | Patch available | CNA |
| Linux | Linux | 4.9.269 to before 4.9.271; 4.14.233 to before 4.14.235; 4.19.191 to before 4.19.193; 5.4.118 to before 5.4.124; 5.10.36 to before 5.10.42; 5.12.3 to before 5.12.9 | 4.9.271, 4.14.235, 4.19.193, 5.4.124, 5.10.42, 5.12.9 | Patch available | CNA |
- Linux VendorLinux Affected 5.11.20 to before 5.12 Fixed in 5.12 Patch available CNA
- Linux VendorLinux Affected 4.9.269 to before 4.9.271; 4.14.233 to before 4.14.235; 4.19.191 to before 4.19.193; 5.4.118 to before 5.4.124; 5.10.36 to before 5.10.42; 5.12.3 to before 5.12.9 Fixed in 4.9.271, 4.14.235, 4.19.193, 5.4.124, 5.10.42, 5.12.9 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.9.269 to before 4.9.271; 4.14.233 to before 4.14.235; 4.19.191 to before 4.19.193; 5.4.118 to before 5.4.124; 5.10.36 to before 5.10.42; 5.12.3 to before 5.12.9 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 4.9.269 to before 4.9.271; 4.14.233 to before 4.14.235; 4.19.191 to before 4.19.193; 5.4.118 to before 5.4.124; 5.10.36 to before 5.10.42; 5.12.3 to before 5.12.9 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 5.12
- Fix · CNA Linux (Linux) Fixed in 4.9.271, 4.14.235, 4.19.193, 5.4.124, 5.10.42, 5.12.9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 4 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2021-47179
- 2026-10-03 Alias added: GHSA-w5g2-4rxc-h7x8
References
Patch 7
- https://git.kernel.org/stable/c/4e1ba532dbc1a0e19fc2458d74ab8d98680c4e42
- https://git.kernel.org/stable/c/42637ca25c7d7b5a92804a679af5192e8c1a9f48
- https://git.kernel.org/stable/c/39785761feadf261bc5101372b0b0bbaf6a94494
- https://git.kernel.org/stable/c/aba3c7795f51717ae316f3566442dee7cc3eeccb
- https://git.kernel.org/stable/c/f9890652185b72b8de9ebeb4406037640b6e1b53
- https://git.kernel.org/stable/c/b090d110e66636bca473fd8b98d5c97b555a965a
- https://git.kernel.org/stable/c/a421d218603ffa822a0b8045055c03eae394a7eb
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2021-47179 · CVE Program
- CVE-2021-47179 · NVD
- FIRST EPSS
- GHSA-w5g2-4rxc-h7x8 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-47179 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences