CVE-2021-47179

NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()

MEDIUM
5.5
CVSS Score
Published: March 25, 2024 at 09:16 AM UTC
Updated: August 4, 2026 at 10:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.11.204.14.233 ≤ v < 4.14.2354.19.191 ≤ v < 4.19.1934.9.269 ≤ v < 4.9.2715.10.36 ≤ v < 5.10.425.11.20 ≤ v < 5.125.12.3 ≤ v < 5.12.95.4.118 ≤ v < 5.4.1242fafe7d5047f98791afd9a1d90d2afb70debc5904.14.2334.19.1914.9.2695.10.365.11.205.12.35.4.1186be0e4b59314e4a836495f6ffdc5d2c5b079deeb7b7b9774643220e53eef58c15bb29bd4182fe0537e65ea887d0c0997f3053acd91a027af45e71c5b80e34f4957ec3010c85f9bb0b568a8d46acdf53596260bde1ea8ae31a5402fe506abbb8951d5a42c9ffa7967f9379a0a1b924e9ffeda709d72237da7de144ff4234f935bd2150108019b5d87a90a8a96
Vendor states this is fixed in 39785761feadf261bc5101372b0b0bbaf6a94494 (fixed)
Vendor states this is fixed in 42637ca25c7d7b5a92804a679af5192e8c1a9f48 (fixed)
Vendor states this is fixed in 4e1ba532dbc1a0e19fc2458d74ab8d98680c4e42 (fixed)
Vendor states this is fixed in a421d218603ffa822a0b8045055c03eae394a7eb (fixed)
Vendor states this is fixed in aba3c7795f51717ae316f3566442dee7cc3eeccb (fixed)
Vendor states this is fixed in b090d110e66636bca473fd8b98d5c97b555a965a (fixed)
Vendor states this is fixed in f9890652185b72b8de9ebeb4406037640b6e1b53 (fixed)
Affected range stops below 4.14.235, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.19.193, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.9.271, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.10.42, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.12.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.4.124, so it looks safe — our inference, not a vendor statement

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/39785761feadf261bc5101372b0b0bbaf6a94494
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/42637ca25c7d7b5a92804a679af5192e8c1a9f48
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4e1ba532dbc1a0e19fc2458d74ab8d98680c4e42
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a421d218603ffa822a0b8045055c03eae394a7eb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aba3c7795f51717ae316f3566442dee7cc3eeccb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b090d110e66636bca473fd8b98d5c97b555a965a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f9890652185b72b8de9ebeb4406037640b6e1b53

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card