Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B076D38735A for ; Sat, 15 Aug 2026 06:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775942; cv=none; b=ol/JkKbnrscUwUlFRGpqMkFuTwyxGfXFkrKapdWUQgTCQ81qrODZx8PcODHIkLle4slROmeGPH5SoIFvGPNnG6jraPiLcKaYDsV/OosZrAlK1Vyf13ANEHIEZeR1aDlzSzyO28QASkrJN6Ae7iEKGlYvEfl5S3nDqwOTvivtWv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775942; c=relaxed/simple; bh=ywa10TsoYRnQODOcrcSmAZpMnmILSLwDRpAwJI9AR8c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ufaERvjJumpZyOAt6tEdvyHdaCBikopzr2P1MikMnbL2bks0ovBZPKO07YTaBotolijOWD0m5GCAveriu2CT2pvP/cH4lJ64xeZ2yCYXSaV9dsEanjW+8CKE7RWpmE5SFwNGsWtQSsYmxnsmoqStpC7l7+yZOrJrsl6sF4Gfe9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bWN/o/6b; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="bWN/o/6b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 010621F00A3A; Sat, 15 Aug 2026 06:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775941; bh=a16jWJTG9KXUPrbPzuq9pB195ySjl0E09GSOx2UrNhw=; h=From:To:Cc:Subject:Date:Reply-To; b=bWN/o/6bh1x+HOScuJs5JjUoU5JRLd/9zwIKrJRAE3J/hPruzdV4Uc9WYT/fb7FE0 uyJ3/EOIjj4k0JWMcfFlH978EDHBHmOVYJ6GChhsP6i3pfA7ukioufMecQtFeJLPEz OtNjugJ7FS3kKMFdNx+acb+44qchDBI3aJPMvv98= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74405: OPP: Fix race between OPP addition and lookup Date: Sat, 15 Aug 2026 15:12:12 +0900 Message-ID: <2026081509-CVE-2026-74405-fed2@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3140; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RDWSVnB9mLTmKABqiR6mUR/KYl/0tguip1RXaJQX62Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjHLWDEL5ofMDYxR8E8Vq+WRuZE16s3Dm1qIDDrJNt Qtux/p2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESeMzHM9+bTmnB0wvOD/xKF jJdMPjXzUID8YYYFZ2L5n3/gvdZZsznhEJtPl/2deVtTAQ== 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: OPP: Fix race between OPP addition and lookup A race exists between dev_pm_opp_add_dynamic() and dev_pm_opp_find_freq_exact(): CPU0 (add) CPU1 (lookup) ------------------------------- ------------------------------ _opp_add() mutex_lock() list_add(&new_opp->node, head) mutex_unlock() _opp_table_find_key() mutex_lock() dev_pm_opp_get(opp) kref_get() mutex_unlock() kref_init(&new_opp->kref) dev_pm_opp_put() kref_put_mutex() The newly added OPP is inserted into the list before its kref is initialized. A concurrent lookup can find this OPP and increment its reference count while it is still uninitialized, leading to refcount corruption and a potential premature free. Fix this by initializing ->kref and ->opp_table before making the OPP visible via list_add(). This ensures any concurrent lookup observes a fully initialized object. [ Viresh: Updated commit log ] The Linux kernel CVE team has assigned CVE-2026-74405 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 7034764a1e4a6edbb60914e89aad8384e3fe5d17 and fixed in 6.18.40 with commit 46696b0b2123475d7f95909435c09808fc5ffd23 Issue introduced in 4.11 with commit 7034764a1e4a6edbb60914e89aad8384e3fe5d17 and fixed in 7.1.5 with commit bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5 Issue introduced in 4.11 with commit 7034764a1e4a6edbb60914e89aad8384e3fe5d17 and fixed in 7.2-rc1 with commit f5e1cc9a284bff2510981643a5bca4bc4c21b81a 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-2026-74405 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/opp/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/46696b0b2123475d7f95909435c09808fc5ffd23 https://git.kernel.org/stable/c/bb75bd7d9ae7672034f73ce67a57e6ac89bb39e5 https://git.kernel.org/stable/c/f5e1cc9a284bff2510981643a5bca4bc4c21b81a