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 594A327815E for ; Sat, 4 Oct 2025 15:53:15 +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=1759593195; cv=none; b=LG5lOZx9iz7nOJMC0e+4faC3e7hqKYaXFqCtrJyIjQom1JAPZ7vld2jk1uuH54r+ZwCyuU4v/sMrSQ7ljnOSWrWk7bwg5ck4fYrr8AD1hTjEMkNSehEa6tBmkTxaezrkN5DBODBD1O8QbzD7iNfw3xZf33y/sQ/GH/4orGJs/9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593195; c=relaxed/simple; bh=CKqFV/SSHPVQ/P0KA2vR8rI9UjleO+NifjtmcboCQmg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oLR/WJhTV2vqjK0pazTZg0WKGDId6B41ToG90IvLtK6cUWXorL19dvvh1969FLfh4aCnxXtVxdVGIlnY0bFZ4McIF+jodztSsPqiQc6p4JrYV6cVL0ldTNfK6nozlKjqXlFkfdUTIvYUWAcjMt9/rhGAySOhy3CEWJ2X6TwHXN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y5Vj+F6l; 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="y5Vj+F6l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC179C4CEFB; Sat, 4 Oct 2025 15:53:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593195; bh=CKqFV/SSHPVQ/P0KA2vR8rI9UjleO+NifjtmcboCQmg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y5Vj+F6laKv3SPzaVJSDD9wuUYoLLAw/tFGwrPSbxcoG2Cc4e8ZPcPaJzN5kp3PGt hQn6G0HbjPWb+kgbMd5yTstuKjbYeQmsO5+yltwnAxXduQKPhQVmX+p6Y+sKjA4cmV 5qiUF5auPZyShswozWi7s/X73ZhVgSjlGcG/Wsr8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50492: drm/msm: fix use-after-free on probe deferral Date: Sat, 4 Oct 2025 17:51:17 +0200 Message-ID: <2025100418-CVE-2022-50492-19b5@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=2149; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FbjHllpXi0OovUxf00bOBoan/4urgtndW+e0ect8Xp0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPncpuF1atqbjmYBbquJrt7Oq7e47IGmeL9abzeXyfl n3kdG5CRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExknzvDguVMWqkizxm7hA3O xNrt/GH0O3+OB8M8myft0r4cETfvGM35/DAl/uOh6xJcAA== 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/msm: fix use-after-free on probe deferral The bridge counter was never reset when tearing down the DRM device so that stale pointers to deallocated structures would be accessed on the next tear down (e.g. after a second late bind deferral). Given enough bridges and a few probe deferrals this could currently also lead to data beyond the bridge array being corrupted. Patchwork: https://patchwork.freedesktop.org/patch/502665/ The Linux kernel CVE team has assigned CVE-2022-50492 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit a3376e3ec81c5dd0622cbc187db76d2824d31c1c and fixed in 6.0.7 with commit 0a30a47741b6df1f9555a0fac6aebb7e8c363bad Issue introduced in 3.12 with commit a3376e3ec81c5dd0622cbc187db76d2824d31c1c and fixed in 6.1 with commit 6808abdb33bf90330e70a687d29f038507e06ebb 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-50492 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/msm/msm_drv.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/0a30a47741b6df1f9555a0fac6aebb7e8c363bad https://git.kernel.org/stable/c/6808abdb33bf90330e70a687d29f038507e06ebb