{"id":"CVE-2022-50454","summary":"drm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau: fix a use-after-free in nouveau_gem_prime_import_sg_table()\n\nnouveau_bo_init() is backed by ttm_bo_init() and ferries its return code\nback to the caller. On failures, ttm will call nouveau_bo_del_ttm() and\nfree the memory.Thus, when nouveau_bo_init() returns an error, the gem\nobject has already been released. Then the call to nouveau_bo_ref() will\nuse the freed \"nvbo-\u003ebo\" and lead to a use-after-free bug.\n\nWe should delete the call to nouveau_bo_ref() to avoid the use-after-free.","modified":"2026-04-02T08:28:31.811312Z","published":"2025-10-01T11:45:27.337Z","related":["SUSE-SU-2025:03613-1","SUSE-SU-2025:03615-1","SUSE-SU-2025:03626-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50454.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3aeda2fe6517cc52663d4ce3588dd43f0d4124a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/540dfd188ea2940582841c1c220bd035a7db0e51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/56ee9577915dc06f55309901012a9ef68dbdb5a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5d6093c49c098d86c7b136aba9922df44aeb6944"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d80473e9f12548ac05b36af4fb9ce80f2f73509"},{"type":"WEB","url":"https://git.kernel.org/stable/c/861f085f81fd569b02cc2c11165a9e6cca144424"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50454.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50454"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"019cbd4a4feb3aa3a917d78e7110e3011bbff6d5"},{"fixed":"56ee9577915dc06f55309901012a9ef68dbdb5a8"},{"fixed":"5d6093c49c098d86c7b136aba9922df44aeb6944"},{"fixed":"861f085f81fd569b02cc2c11165a9e6cca144424"},{"fixed":"3aeda2fe6517cc52663d4ce3588dd43f0d4124a7"},{"fixed":"7d80473e9f12548ac05b36af4fb9ce80f2f73509"},{"fixed":"540dfd188ea2940582841c1c220bd035a7db0e51"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50454.json"}}],"schema_version":"1.7.5"}