Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE6012D73A1 for ; Tue, 7 Oct 2025 15:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850400; cv=none; b=U6PED5gJppkmTDfyPTynrV3uZzvuF5VAG/fegjh6yxPhLP9a+nE+8lm05Akp7KkWnepRVrm5Itd080/YS/PnRrjFZY7wneazwnQVSliCUSNVrpjyxPKGZ/LswNL5Y5vJXojwwassrpjtnb0u690YBJv5w0GI8/5lUqPTsUKDXa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850400; c=relaxed/simple; bh=kXF1d376rem1JMfo7Pzvm+5Yinas0TB8mUt3xVeZ1s8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hae/9xi7fpVoVyLPfC+nsLQtI42oxQTt+Fzeddstti0BEBIqjO1sQA15ZiWSr1zYA45rnCFJZQEfRTF5cM2CyXPQ/f0VcZh5EPvsYkl2At1HmX0jJOqMmZshU3M+oFqZvzFvxDvBfa/vCGJb1vhVhn9e1IhYg2hQM9OQeyMAnlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fwM9tJHW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fwM9tJHW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5418C4CEF1; Tue, 7 Oct 2025 15:19:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850400; bh=kXF1d376rem1JMfo7Pzvm+5Yinas0TB8mUt3xVeZ1s8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fwM9tJHW/RTpmZKlQLSDpCL8dDvDAcpxsLMOiFrtVJPdC9UO3NaI762LOpgVo5DmH eN5JQNbmxGlxNGHcMkNP3Br+hntXnWc2KsWfUQfxS+2Ndk3zniD4sdazYuKrFoZ+ZQ aHogVLYKJ8vPxE1mEZnBX7LEfzgNIVBfr92uvW30= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50515: drm/amdgpu: Fix memory leak in hpd_rx_irq_create_workqueue() Date: Tue, 7 Oct 2025 17:19:02 +0200 Message-ID: <2025100702-CVE-2022-50515-fff8@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2fM44/Al1GubbBqmLIQ+GEzjhBhcOWhVlP/3AAPuIYY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9dNao19waL6zsa70/SoqHlO4T9a46lbAmbu22QF/H lcy/bjcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPRfs6wYPO2ltDcpHenwpsP fNK4e/pyc1AtF8OC/pB3G+P/zf1g+P7QEfHNkR7mc3P6AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix memory leak in hpd_rx_irq_create_workqueue() If construction of the array of work queues to handle hpd_rx_irq offload work fails, we need to unwind. Destroy all the created workqueues and the allocated memory for the hpd_rx_irq_offload_work_queue struct array. The Linux kernel CVE team has assigned CVE-2022-50515 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.58 with commit e980e1d978e0eb4c0399cff37f175779237db53b and fixed in 5.15.75 with commit 3ba3814c00a4817eb1cd31eff08d921c40e5f3a4 Issue introduced in 5.16 with commit 8e794421bc981586d0af4e959ec76d668c793a55 and fixed in 5.19.17 with commit 8b8da09da2701330e7f2c371655887e3d7defe90 Issue introduced in 5.16 with commit 8e794421bc981586d0af4e959ec76d668c793a55 and fixed in 6.0.3 with commit 600de40ed50c8b5ecb9c7a4f41eb882066c15a00 Issue introduced in 5.16 with commit 8e794421bc981586d0af4e959ec76d668c793a55 and fixed in 6.1 with commit 7136f956c73c4ba50bfeb61653dfd6a9669ea915 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50515 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3ba3814c00a4817eb1cd31eff08d921c40e5f3a4 https://git.kernel.org/stable/c/8b8da09da2701330e7f2c371655887e3d7defe90 https://git.kernel.org/stable/c/600de40ed50c8b5ecb9c7a4f41eb882066c15a00 https://git.kernel.org/stable/c/7136f956c73c4ba50bfeb61653dfd6a9669ea915