Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48887
HistoryAug 21, 2024 - 6:10 a.m.

CVE-2022-48887 drm/vmwgfx: Remove rcu locks from user resources

2024-08-2106:10:19
Linux
www.cve.org
3
linux kernel
vulnerability
drm/vmwgfx
user resources
rcu locks
spin lock
kernel oops
igt
execution_buffer stress test
crashes
shared resources

EPSS

0

Percentile

9.5%

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

drm/vmwgfx: Remove rcu locks from user resources

User resource lookups used rcu to avoid two extra atomics. Unfortunately
the rcu paths were buggy and it was easy to make the driver crash by
submitting command buffers from two different threads. Because the
lookups never show up in performance profiles replace them with a
regular spin lock which fixes the races in accesses to those shared
resources.

Fixes kernel oops’es in IGT’s vmwgfx execution_buffer stress test and
seen crashes with apps using shared resources.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpu/drm/vmwgfx/ttm_object.c",
      "drivers/gpu/drm/vmwgfx/ttm_object.h",
      "drivers/gpu/drm/vmwgfx/vmwgfx_bo.c",
      "drivers/gpu/drm/vmwgfx/vmwgfx_drv.h",
      "drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c",
      "drivers/gpu/drm/vmwgfx/vmwgfx_resource.c"
    ],
    "versions": [
      {
        "version": "e14c02e6b699",
        "lessThan": "7ac9578e45b2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "e14c02e6b699",
        "lessThan": "a309c7194e8a",
        "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/gpu/drm/vmwgfx/ttm_object.c",
      "drivers/gpu/drm/vmwgfx/ttm_object.h",
      "drivers/gpu/drm/vmwgfx/vmwgfx_bo.c",
      "drivers/gpu/drm/vmwgfx/vmwgfx_drv.h",
      "drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c",
      "drivers/gpu/drm/vmwgfx/vmwgfx_resource.c"
    ],
    "versions": [
      {
        "version": "4.20",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.20",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.7",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.2",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

9.5%