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 CA99516FF51 for ; Thu, 29 Feb 2024 22:38:48 +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=1709246328; cv=none; b=qrFsfnXWte1Dn1+wHa9B3P8RqG+t+1TJkUP7dJRd2AxMKvdRu9YkgKr8KSv/IfNbgP5l1H5vnOLVmDoI4mNRgdBr2pHJQq0dqaIuVhWLReGNaLm95pa2DZavJumZpKUp1ai0UrjdvA1J7G2OjHHY4HXA/U+jVpvu6mv8Xa7qa1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709246328; c=relaxed/simple; bh=RbtgSWdNUZwiLQEPq/rGNwcW0LhvbzGMjubM1+KSQG8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vuhfm/bfKuy3TXvOIG/uH+mFTh4injFbiQW599lCqtoAnJF75PdSpp4v9OuvJ0SV02h4KkBN/NJVeGQPTJMLP+EYOXK8t+O7ufJsaHBBXZCsuDhygkzEzO3okwyA3lDfYcXWEUsn1BL6Bb8Cw14pWo5VoxnHEJ/uIbL7NLnW73k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T9kYOsl9; 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="T9kYOsl9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 472CBC433C7; Thu, 29 Feb 2024 22:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709246328; bh=RbtgSWdNUZwiLQEPq/rGNwcW0LhvbzGMjubM1+KSQG8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T9kYOsl9GLZBFh26Y1Nc65CuFx6vYNLhhaU5Cliv04qKjmVLxFX5RlYNAfqGj9G0w DopEEYbPe7VcJ0YkxdlKqS5Gbpvg+vhEy2XGqfaN4cTvBBWj3yh5PDMeKQ0nEH8ckT /s/RSCJA4qPgI1Br8kg8gqMytRR9pkjd/sCplqz0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47063: drm: bridge/panel: Cleanup connector on bridge detach Date: Thu, 29 Feb 2024 23:38:00 +0100 Message-ID: <2024022953-CVE-2021-47063-2f50@gregkh> X-Mailer: git-send-email 2.44.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=2546; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RbtgSWdNUZwiLQEPq/rGNwcW0LhvbzGMjubM1+KSQG8=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkP2R3bmtc2nlmnvOX99EsZIiLlX9qvqHj6hAboSmyUm hzd/YupI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZicp9hrvRFC+9E+cLmTyZ5 SxgSJt86yF3BzbDg2mmjjS5WdZv2GkX3qWe3/D92POo+AA== 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: bridge/panel: Cleanup connector on bridge detach If we don't call drm_connector_cleanup() manually in panel_bridge_detach(), the connector will be cleaned up with the other DRM objects in the call to drm_mode_config_cleanup(). However, since our drm_connector is devm-allocated, by the time drm_mode_config_cleanup() will be called, our connector will be long gone. Therefore, the connector must be cleaned up when the bridge is detached to avoid use-after-free conditions. v2: Cleanup connector only if it was created v3: Add FIXME v4: (Use connector->dev) directly in if() block The Linux kernel CVE team has assigned CVE-2021-47063 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 13dfc0540a57 and fixed in 5.10.37 with commit ce450934a00c Issue introduced in 4.13 with commit 13dfc0540a57 and fixed in 5.11.21 with commit 18149b420c9b Issue introduced in 4.13 with commit 13dfc0540a57 and fixed in 5.12.4 with commit 98d7d76a74e4 Issue introduced in 4.13 with commit 13dfc0540a57 and fixed in 5.13 with commit 4d906839d321 Please see https://www.kernel.org or 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-2021-47063 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/bridge/panel.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/ce450934a00cf896e648fde08d0bd1426653d7a2 https://git.kernel.org/stable/c/18149b420c9bd93c443e8d1f48a063d71d9f6aa1 https://git.kernel.org/stable/c/98d7d76a74e48ec3ddf2e23950adff7edcab9327 https://git.kernel.org/stable/c/4d906839d321c2efbf3fed4bc31ffd9ff55b75c0