{
  "threat_severity" : "Moderate",
  "public_date" : "2025-09-15T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: drm/amdkfd: Fix double release compute pasid",
    "id" : "2395264",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2395264"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-1341",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\ndrm/amdkfd: Fix double release compute pasid\nIf kfd_process_device_init_vm returns failure after vm is converted to\ncompute vm and vm->pasid set to compute pasid, KFD will not take\npdd->drm_file reference. As a result, drm close file handler maybe\ncalled to release the compute pasid before KFD process destroy worker to\nrelease the same pasid and set vm->pasid to zero, this generates below\nWARNING backtrace and NULL pointer access.\nAdd helper amdgpu_amdkfd_gpuvm_set_vm_pasid and call it at the last step\nof kfd_process_device_init_vm, to ensure vm pasid is the original pasid\nif acquiring vm failed or is the compute pasid with pdd->drm_file\nreference taken to avoid double release same pasid.\namdgpu: Failed to create process VM object\nida_free called for id=32770 which is not allocated.\nWARNING: CPU: 57 PID: 72542 at ../lib/idr.c:522 ida_free+0x96/0x140\nRIP: 0010:ida_free+0x96/0x140\nCall Trace:\namdgpu_pasid_free_delayed+0xe1/0x2a0 [amdgpu]\namdgpu_driver_postclose_kms+0x2d8/0x340 [amdgpu]\ndrm_file_free.part.13+0x216/0x270 [drm]\ndrm_close_helper.isra.14+0x60/0x70 [drm]\ndrm_release+0x6e/0xf0 [drm]\n__fput+0xcc/0x280\n____fput+0xe/0x20\ntask_work_run+0x96/0xc0\ndo_exit+0x3d0/0xc10\nBUG: kernel NULL pointer dereference, address: 0000000000000000\nRIP: 0010:ida_free+0x76/0x140\nCall Trace:\namdgpu_pasid_free_delayed+0xe1/0x2a0 [amdgpu]\namdgpu_driver_postclose_kms+0x2d8/0x340 [amdgpu]\ndrm_file_free.part.13+0x216/0x270 [drm]\ndrm_close_helper.isra.14+0x60/0x70 [drm]\ndrm_release+0x6e/0xf0 [drm]\n__fput+0xcc/0x280\n____fput+0xe/0x20\ntask_work_run+0x96/0xc0\ndo_exit+0x3d0/0xc10" ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2023-11-14T00:00:00Z",
    "advisory" : "RHSA-2023:7077",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "kernel-0:4.18.0-513.5.1.el8_9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-11-07T00:00:00Z",
    "advisory" : "RHSA-2023:6583",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-362.8.1.el9_3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-11-07T00:00:00Z",
    "advisory" : "RHSA-2023:6583",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-362.8.1.el9_3"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-50303\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-50303\nhttps://lore.kernel.org/linux-cve-announce/2025091558-CVE-2022-50303-7759@gregkh/T" ],
  "name" : "CVE-2022-50303",
  "csaw" : false
}