Lucene search

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

CVE-2022-48899 drm/virtio: Fix GEM handle creation UAF

2024-08-2106:10:31
Linux
www.cve.org
2
linux kernel
drm/virtio
fix
use-after-free
vulnerability

EPSS

0

Percentile

5.1%

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

drm/virtio: Fix GEM handle creation UAF

Userspace can guess the handle value and try to race GEM object creation
with handle close, resulting in a use-after-free if we dereference the
object after dropping the handle’s reference. For that reason, dropping
the handle’s reference must be done after we are done dereferencing
the object.

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/virtio/virtgpu_ioctl.c"
    ],
    "versions": [
      {
        "version": "62fb7a5e1096",
        "lessThan": "19ec87d06acf",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "62fb7a5e1096",
        "lessThan": "d01d6d2b06c0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "62fb7a5e1096",
        "lessThan": "68bcd0638570",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "62fb7a5e1096",
        "lessThan": "011ecdbcd520",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "62fb7a5e1096",
        "lessThan": "adc48e5e408a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "62fb7a5e1096",
        "lessThan": "52531258318e",
        "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/virtio/virtgpu_ioctl.c"
    ],
    "versions": [
      {
        "version": "4.4",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.4",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.270",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.229",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.164",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.89",
        "lessThanOrEqual": "5.15.*",
        "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

5.1%