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 BD6D212C47C for ; Fri, 24 May 2024 15:10: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=1716563448; cv=none; b=FGO1VTy6U7f5U11c2lxwsleR3l0+Vgu8mmqwK+qNdxg1+rx/USrlQ/QxBiy4vpaT/aiGY1pmo9I0Cub/jkX+YqGlC0GrLD+p9SfYW6YfixDvxQELjmKrt3lo320CzzB8u5xSxAYbj0uPZ9YJd6nCCGaO1P4+PAg8E/45ySbBP88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563448; c=relaxed/simple; bh=w7M7q69s9lNJu/x368/YMTUAJaHTbQdDehxEJ0pTCZ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P/rn9ByyJcDNTBi6i7SS2MX/LWTTxCzSbwzq9uG6bLouqCRn/kuqG3d3iFN9pEaX4YwffS108kuxIP/f+wq96doe5F2R8Y0jJF7WLxasa7ua7iGIkIp/wlit2vkpby/xzgZ/Olh5/xfmRroaaefpuQsKBfcfcZPsoGjCn39CSNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xgPw27xg; 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="xgPw27xg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E7C9C32782; Fri, 24 May 2024 15:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563448; bh=w7M7q69s9lNJu/x368/YMTUAJaHTbQdDehxEJ0pTCZ8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xgPw27xgBRk5rayiEjYdfHgFNp5Uy+qLCcpHw8RV7nj9eL49EG5E9nOCRzXuNWJvX 3MfAET3eIqyUE4iXDrwOXOOtMKabPOE+z6MSFnRTJKHJBTEYrKGt2wEgQe9xtCSYQa 85xzJ7i6YtfdT6MdXZ2uYbyA4PwryiAq/NvTTYFA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47534: drm/vc4: kms: Add missing drm_crtc_commit_put Date: Fri, 24 May 2024 17:09:54 +0200 Message-ID: <2024052437-CVE-2021-47534-ef5f@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=2021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w7M7q69s9lNJu/x368/YMTUAJaHTbQdDehxEJ0pTCZ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBazcaq+d5/mtZdsb59MKWvQuC3qx7YrZKeuaqPjaXp UrZBl+XdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBELJkZ5hnbTPi8SnBWcYTR ZKdJwjbixV+z7RnmKR+qvF7I9/EYX/6EvFMVPms4GNOtAA== 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/vc4: kms: Add missing drm_crtc_commit_put Commit 9ec03d7f1ed3 ("drm/vc4: kms: Wait on previous FIFO users before a commit") introduced a global state for the HVS, with each FIFO storing the current CRTC commit so that we can properly synchronize commits. However, the refcounting was off and we thus ended up leaking the drm_crtc_commit structure every commit. Add a drm_crtc_commit_put to prevent the leakage. The Linux kernel CVE team has assigned CVE-2021-47534 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 9ec03d7f1ed3 and fixed in 5.15.7 with commit 53f9601e908d Issue introduced in 5.12 with commit 9ec03d7f1ed3 and fixed in 5.16 with commit 049cfff8d53a 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-2021-47534 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/vc4/vc4_kms.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/53f9601e908d42481addd67cdb01a9288c611124 https://git.kernel.org/stable/c/049cfff8d53a30cae3349ff71a4c01b7d9981bc2