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 235A1127B45 for ; Wed, 1 May 2024 12:50:22 +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=1714567823; cv=none; b=BIlyk7SJV7qxQ92z5Sj+yvQW363IOnHbAJbar2dyvCzhryDtMh+LNMmQZ2aoM336BlCC59GqItJfY6RgOZW5ASWsGIhaL5e25RODgmiZ57garMM8uecypDmdz0Afs1s0RFs+xDXGPYCDNeT24HB3ya6Po46C+kAli/q2rFBviZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714567823; c=relaxed/simple; bh=kmX59v1PHGGc9cpueMxVon2rhJ3uJRrjdrIb4gE5Eco=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WrAvr8rGUzNZxgBHEqKrzyKtus6IZRT2kq0odAA8W2EgNvIL715b+uyeSzQkMidG/KvvRytqZnvb7dk6ZuTiji2ca5my2f9+rM+VhwDgKtQJGWwuY3EjSH93HiTmNSfMCwqkg+wnXqcXiCjOi5GaUX0K3Qqe+pzKoSAlkzgXefw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U0Xrkhok; 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="U0Xrkhok" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D188C113CC; Wed, 1 May 2024 12:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714567822; bh=kmX59v1PHGGc9cpueMxVon2rhJ3uJRrjdrIb4gE5Eco=; h=From:To:Cc:Subject:Date:Reply-to:From; b=U0XrkhokBePEtGTAOhauqfIET/XNGsaefUGpLy8wfZdAgMtb8DkeRiQzMQtiLfJ4A rqZQCoGdTTzdt/q9bmxbtWkgEMi2CVqK6Xm85CNYe81duY9ZGNHbU0zW0RgX/Jtfo2 CHkLsEQuxLrlz1KYqRvSJ+IwYk2C/UWVYhhRn2Fw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27027: dpll: fix dpll_xa_ref_*_del() for multiple registrations Date: Wed, 1 May 2024 14:50:10 +0200 Message-ID: <2024050108-CVE-2024-27027-ba6a@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=2514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kmX59v1PHGGc9cpueMxVon2rhJ3uJRrjdrIb4gE5Eco=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGVg17niV5f+bZO/FtEfcO0WBrp7RPmZNa9/SfKy9re 8ESamrTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5L8Qwh2ue1rwQ9gehE/xl GXnSFDt21GTsYFjQuvKuNpN9Xm9hkvC74p1Cf7TjX+4HAA== 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: dpll: fix dpll_xa_ref_*_del() for multiple registrations Currently, if there are multiple registrations of the same pin on the same dpll device, following warnings are observed: WARNING: CPU: 5 PID: 2212 at drivers/dpll/dpll_core.c:143 dpll_xa_ref_pin_del.isra.0+0x21e/0x230 WARNING: CPU: 5 PID: 2212 at drivers/dpll/dpll_core.c:223 __dpll_pin_unregister+0x2b3/0x2c0 The problem is, that in both dpll_xa_ref_dpll_del() and dpll_xa_ref_pin_del() registration is only removed from list in case the reference count drops to zero. That is wrong, the registration has to be removed always. To fix this, remove the registration from the list and free it unconditionally, instead of doing it only when the ref reference counter reaches zero. The Linux kernel CVE team has assigned CVE-2024-27027 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 9431063ad323 and fixed in 6.7.11 with commit 769324eb3514 Issue introduced in 6.7 with commit 9431063ad323 and fixed in 6.8.2 with commit b27e32e9367d Issue introduced in 6.7 with commit 9431063ad323 and fixed in 6.9-rc1 with commit b446631f355e 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-2024-27027 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/dpll/dpll_core.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/769324eb35143462542cdb15483cdaf4877bf661 https://git.kernel.org/stable/c/b27e32e9367dac024cd6f61f22655714f483fd67 https://git.kernel.org/stable/c/b446631f355ece73b13c311dd712c47381a23172