Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47003
HistoryFeb 28, 2024 - 8:13 a.m.

CVE-2021-47003 dmaengine: idxd: Fix potential null dereference on pointer status

2024-02-2808:13:24
Linux
www.cve.org
5
linux kernel
vulnerability
null dereference
dmaengine
idxd
pointer status

AI Score

6.7

Confidence

Low

EPSS

0

Percentile

15.5%

In the Linux kernel, the following vulnerability has been resolved:

dmaengine: idxd: Fix potential null dereference on pointer status

There are calls to idxd_cmd_exec that pass a null status pointer however
a recent commit has added an assignment to *status that can end up
with a null pointer dereference. The function expects a null status
pointer sometimes as there is a later assignment to *status where
status is first null checked. Fix the issue by null checking status
before making the assignment.

Addresses-Coverity: (“Explicit null dereferenced”)

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/dma/idxd/device.c"
    ],
    "versions": [
      {
        "version": "40e3b5c12864",
        "lessThan": "5756f757c725",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e3becd8f82",
        "lessThan": "2280b4cc29d8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e3becd8f82",
        "lessThan": "7bc402f843e7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e3becd8f82",
        "lessThan": "28ac8e03c43d",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/dma/idxd/device.c"
    ],
    "versions": [
      {
        "version": "5.11",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.11",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.38",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.11.22",
        "lessThanOrEqual": "5.11.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.5",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.7

Confidence

Low

EPSS

0

Percentile

15.5%