{"id":"DEBIAN-CVE-2022-50303","details":"In the Linux kernel, the following vulnerability has been resolved:  drm/amdkfd: Fix double release compute pasid  If kfd_process_device_init_vm returns failure after vm is converted to compute vm and vm-\u003epasid set to compute pasid, KFD will not take pdd-\u003edrm_file reference. As a result, drm close file handler maybe called to release the compute pasid before KFD process destroy worker to release the same pasid and set vm-\u003epasid to zero, this generates below WARNING backtrace and NULL pointer access.  Add helper amdgpu_amdkfd_gpuvm_set_vm_pasid and call it at the last step of kfd_process_device_init_vm, to ensure vm pasid is the original pasid if acquiring vm failed or is the compute pasid with pdd-\u003edrm_file reference taken to avoid double release same pasid.   amdgpu: Failed to create process VM object  ida_free called for id=32770 which is not allocated.  WARNING: CPU: 57 PID: 72542 at ../lib/idr.c:522 ida_free+0x96/0x140  RIP: 0010:ida_free+0x96/0x140  Call Trace:   amdgpu_pasid_free_delayed+0xe1/0x2a0 [amdgpu]   amdgpu_driver_postclose_kms+0x2d8/0x340 [amdgpu]   drm_file_free.part.13+0x216/0x270 [drm]   drm_close_helper.isra.14+0x60/0x70 [drm]   drm_release+0x6e/0xf0 [drm]   __fput+0xcc/0x280   ____fput+0xe/0x20   task_work_run+0x96/0xc0   do_exit+0x3d0/0xc10   BUG: kernel NULL pointer dereference, address: 0000000000000000  RIP: 0010:ida_free+0x76/0x140  Call Trace:   amdgpu_pasid_free_delayed+0xe1/0x2a0 [amdgpu]   amdgpu_driver_postclose_kms+0x2d8/0x340 [amdgpu]   drm_file_free.part.13+0x216/0x270 [drm]   drm_close_helper.isra.14+0x60/0x70 [drm]   drm_release+0x6e/0xf0 [drm]   __fput+0xcc/0x280   ____fput+0xe/0x20   task_work_run+0x96/0xc0   do_exit+0x3d0/0xc10","modified":"2026-09-01T16:05:25.813571935Z","published":"2025-09-15T15:15:41.840Z","upstream":["CVE-2022-50303"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-50303"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50303.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50303.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50303.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}