Lucene search

K
cveLinuxCVE-2021-47179
HistoryMar 25, 2024 - 10:15 a.m.

CVE-2021-47179

2024-03-2510:15:09
CWE-476
Linux
web.nvd.nist.gov
60
linux kernel
nfsv4
null pointer
dereference
vulnerability
ontap

CVSS3

5.5

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

AI Score

6.3

Confidence

Low

EPSS

0

Percentile

5.1%

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 configurations

Nvd
Vulners
Node
linuxlinux_kernelRange4.9.2694.9.271
OR
linuxlinux_kernelRange4.14.2334.14.235
OR
linuxlinux_kernelRange4.19.1914.19.193
OR
linuxlinux_kernelRange5.4.1185.4.124
OR
linuxlinux_kernelRange5.10.365.10.42
OR
linuxlinux_kernelRange5.12.35.12.9
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/nfs/pnfs.c"
    ],
    "versions": [
      {
        "version": "80e34f4957ec",
        "lessThan": "4e1ba532dbc1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "7b7b97746432",
        "lessThan": "42637ca25c7d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "9ffa7967f937",
        "lessThan": "39785761fead",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6be0e4b59314",
        "lessThan": "aba3c7795f51",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "2fafe7d5047f",
        "lessThan": "f9890652185b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "7e65ea887d0c",
        "lessThan": "b090d110e666",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "de144ff4234f",
        "lessThan": "a421d218603f",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/nfs/pnfs.c"
    ],
    "versions": [
      {
        "version": "4.9.269",
        "lessThan": "4.9.271",
        "status": "affected",
        "versionType": "custom"
      },
      {
        "version": "4.14.233",
        "lessThan": "4.14.235",
        "status": "affected",
        "versionType": "custom"
      },
      {
        "version": "4.19.191",
        "lessThan": "4.19.193",
        "status": "affected",
        "versionType": "custom"
      },
      {
        "version": "5.4.118",
        "lessThan": "5.4.124",
        "status": "affected",
        "versionType": "custom"
      },
      {
        "version": "5.10.36",
        "lessThan": "5.10.42",
        "status": "affected",
        "versionType": "custom"
      },
      {
        "version": "5.12.3",
        "lessThan": "5.12.9",
        "status": "affected",
        "versionType": "custom"
      }
    ]
  }
]

CVSS3

5.5

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

AI Score

6.3

Confidence

Low

EPSS

0

Percentile

5.1%