Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48730
HistoryJun 20, 2024 - 11:13 a.m.

CVE-2022-48730 dma-buf: heaps: Fix potential spectre v1 gadget

2024-06-2011:13:18
Linux
www.cve.org
linux kernel
vulnerability resolved
spectre v1
array index_nospec
user supplied
speculative execution
kernel memory

0.0004 Low

EPSS

Percentile

15.7%

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

dma-buf: heaps: Fix potential spectre v1 gadget

It appears like nr could be a Spectre v1 gadget as it’s supplied by a
user and used as an array index. Prevent the contents
of kernel memory from being leaked to userspace via speculative
execution by using array_index_nospec.

[sumits: added fixes and cc: stable tags]

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/dma-buf/dma-heap.c"
    ],
    "versions": [
      {
        "version": "c02a81fba74f",
        "lessThan": "5d40f1bdad3d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c02a81fba74f",
        "lessThan": "24f8e12d965b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c02a81fba74f",
        "lessThan": "cc8f7940d9c2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c02a81fba74f",
        "lessThan": "92c4cfaee687",
        "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-buf/dma-heap.c"
    ],
    "versions": [
      {
        "version": "5.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.99",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.22",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.8",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2022-48730