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 B586726AC1 for ; Tue, 21 May 2024 15:33:58 +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=1716305638; cv=none; b=a0spHxAn1mN7WH2FyO+4Ey6I4ikh6/UcaY+MJOuAv+xAsZhnYOQRmQ/YQd9NM4r7dyH0iW1jco0l0WLS7G9TEcmwDkwhL3kYEdZ98Y6Svn6W2vutRNj+m6SvkRzYUZNoaddpucJRR6EzjbK4QbCesI3j11sIwzVbNVrgECaeWXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305638; c=relaxed/simple; bh=whLeEChr9XjyI0b459y2AEpQFVeDKaJKwc/RtJoXlRY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NFyMkeE5M0H+xabvK9NFps01/0CezjMgaYSYEQSN0jACEvX66P84mcXdYUa5gfuk5MbX7ArLwojtunRrtbAILzzPrZ+tPiyrUI2wl9UvFq8Idhd9FtsVmHuzpEKGij9FBCi4qZpcm0O+v/sqdlO4DeyX0/ZqfRXFHbgKTxCcKiI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JcoAcZCr; 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="JcoAcZCr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5855C2BD11; Tue, 21 May 2024 15:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305638; bh=whLeEChr9XjyI0b459y2AEpQFVeDKaJKwc/RtJoXlRY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JcoAcZCrwc+K6/ecKKJ0i7yzrEZP4sWmVT1neYtA1SdjNUxlN1iYLTJhMtlst9CSu OPBm58Cxe9S4YW7hrVm+3pByS7tReNndK4ad/Syb2R4HYcuM7hBWiBEN88b21qegg/ kUOQfC6cji9uhs9dGllaKxww2fO5w25/qF+ULxgs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48710: drm/radeon: fix a possible null pointer dereference Date: Tue, 21 May 2024 17:30:43 +0200 Message-ID: <2024052143-CVE-2022-48710-aa43@gregkh> X-Mailer: git-send-email 2.45.1 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=2666; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=whLeEChr9XjyI0b459y2AEpQFVeDKaJKwc/RtJoXlRY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++5RDfoa9Y2p784yZreKPX+r8F7Kp710Ut1p8eLLMU 9Dn3vrHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARn0qGBTuzr+fkaKydGs1w X/KK/AVTP8V1wgzzLK5uvCOuGHG3SMpMn8E2Yd28MwYaAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/radeon: fix a possible null pointer dereference In radeon_fp_native_mode(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The failure status of drm_cvt_mode() on the other path is checked too. The Linux kernel CVE team has assigned CVE-2022-48710 to this issue. Affected and fixed versions =========================== Fixed in 4.9.318 with commit b33f7d99c922 Fixed in 4.14.283 with commit 16a0f0b63c4c Fixed in 4.19.247 with commit 8a89bfeef9ab Fixed in 5.4.198 with commit 28fd384c78d7 Fixed in 5.10.122 with commit fee8ae0a0bb6 Fixed in 5.15.47 with commit 7b7fba107b2c Fixed in 5.17.15 with commit e938d24f0b73 Fixed in 5.18.4 with commit 140d9807b96e Fixed in 5.19 with commit a2b28708b645 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-48710 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/radeon/radeon_connectors.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/b33f7d99c9226892c7794dc2500fae35966020c9 https://git.kernel.org/stable/c/16a0f0b63c4c7eb46fc4c3f00bf2836e6ee46a9f https://git.kernel.org/stable/c/8a89bfeef9abe93371e3ea8796377f2d132eee29 https://git.kernel.org/stable/c/28fd384c78d7d8ed8af0d086d778c3e438ba7f60 https://git.kernel.org/stable/c/fee8ae0a0bb66eb7730c22f44fbd7203f63c2eab https://git.kernel.org/stable/c/7b7fba107b2c4ec7673d0f45bdbb9d1af697d9b9 https://git.kernel.org/stable/c/e938d24f0b7392e142b8aa434f18590d99dbe479 https://git.kernel.org/stable/c/140d9807b96e1303f6f2675a7ae8710a2094bd17 https://git.kernel.org/stable/c/a2b28708b645c5632dc93669ab06e97874c8244f