{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/virtio: Fix GEM handle creation UAF\n\nUserspace can guess the handle value and try to race GEM object creation\nwith handle close, resulting in a use-after-free if we dereference the\nobject after dropping the handle's reference.  For that reason, dropping\nthe handle's reference must be done *after* we are done dereferencing\nthe object."
            }
         ],
         "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"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/19ec87d06acfab2313ee82b2a689bf0c154e57ea"
            },
            {
               "url": "https://git.kernel.org/stable/c/d01d6d2b06c0d8390adf8f3ba08aa60b5642ef73"
            },
            {
               "url": "https://git.kernel.org/stable/c/68bcd063857075d2f9edfed6024387ac377923e2"
            },
            {
               "url": "https://git.kernel.org/stable/c/011ecdbcd520c90c344b872ca6b4821f7783b2f8"
            },
            {
               "url": "https://git.kernel.org/stable/c/adc48e5e408afbb01d261bd303fd9fbbbaa3e317"
            },
            {
               "url": "https://git.kernel.org/stable/c/52531258318ed59a2dc5a43df2eaf0eb1d65438e"
            }
         ],
         "title": "drm/virtio: Fix GEM handle creation UAF",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2022-48899",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
