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 1AFAD2AF00 for ; Sat, 4 Oct 2025 15:17:10 +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=1759591031; cv=none; b=mHGAkPMicny2abLwBGcaLxzCJGYRZCon8X3wZIoh92bfLFtOsxEm37mu2iXPLeSA+Lt5vYePPOvyoYNGeWGS01Z5AmqsvHD6kRomcHiGhZzO3EflWx7F8UOL52h5D/OMmwA90ZlmWMoMZNOos+PumnKNpq68au9WG+t2i5jwxHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591031; c=relaxed/simple; bh=DL83fit3NI2/cZg3Ru53pHeOpj2WK2kcqcjGRi96CnI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lI5QaLguKVskwjqkp/O0bATovU+U1JfY+AR8/zVxFsaITRJQ+dlvrCxGAw2NYbQ/TvDm56AVP0lCJ860ZqxpspMFUWWxXSG5T2zBKYVeZB/owLvkqeGDcSvmjhsQkGXdJ93G6nhCt0GgoBrgbrentDb/mmQbBd93df6gerAZnCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XETZk1ba; 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="XETZk1ba" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E447C4CEF1; Sat, 4 Oct 2025 15:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591030; bh=DL83fit3NI2/cZg3Ru53pHeOpj2WK2kcqcjGRi96CnI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XETZk1bat59KI689p8OKuAU9ksx5xOjc7b7Thll7Vyydyh03MpNQmAe7erA7LEO4F 2PhzZNt8/japVocFcNKlTIBb3o5zGi/LYaK+RonvGMdyNLKxfHFspL3jIM8Ph0T3+g JHpN3gnlB6KIa80Hh88kftS8vSiMcDZMLXrMGKAo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50473: cpufreq: Init completion before kobject_init_and_add() Date: Sat, 4 Oct 2025 17:16:32 +0200 Message-ID: <2025100437-CVE-2022-50473-a1fc@gregkh> X-Mailer: git-send-email 2.51.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=3481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DUkgxnttlOOV/sFe1GLSSA8fiPILWOPeGEkr9VH9UGI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrUKD9mxXnvVgh6fP1Q8/H3HtdjdtNH0YN/XjZT7za U0e6y3ZOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/RsYZrOzvpWLcz98R/Xa ZTGBlhjTy/9er2ZYcDHHtP+saKvxxme9L304/mRfNpNaAwA= 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: cpufreq: Init completion before kobject_init_and_add() In cpufreq_policy_alloc(), it will call uninitialed completion in cpufreq_sysfs_release() when kobject_init_and_add() fails. And that will cause a crash such as the following page fault in complete: BUG: unable to handle page fault for address: fffffffffffffff8 [..] RIP: 0010:complete+0x98/0x1f0 [..] Call Trace: kobject_put+0x1be/0x4c0 cpufreq_online.cold+0xee/0x1fd cpufreq_add_dev+0x183/0x1e0 subsys_interface_register+0x3f5/0x4e0 cpufreq_register_driver+0x3b7/0x670 acpi_cpufreq_init+0x56c/0x1000 [acpi_cpufreq] do_one_initcall+0x13d/0x780 do_init_module+0x1c3/0x630 load_module+0x6e67/0x73b0 __do_sys_finit_module+0x181/0x240 do_syscall_64+0x35/0x80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The Linux kernel CVE team has assigned CVE-2022-50473 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 4ebe36c94aed95de71a8ce6a6762226d31c938ee and fixed in 5.4.229 with commit 3cdd91a9163248935720927531066b74f57aa43b Issue introduced in 5.2 with commit 4ebe36c94aed95de71a8ce6a6762226d31c938ee and fixed in 5.10.163 with commit e379b88a8f8cffc99b318e028705ed9e3da0e1e0 Issue introduced in 5.2 with commit 4ebe36c94aed95de71a8ce6a6762226d31c938ee and fixed in 5.15.87 with commit 8fb4c98f20dfca1237de2e3dfdbe78d156784fd3 Issue introduced in 5.2 with commit 4ebe36c94aed95de71a8ce6a6762226d31c938ee and fixed in 6.0.18 with commit d88540acfc7a17079021d866de914112c396edb1 Issue introduced in 5.2 with commit 4ebe36c94aed95de71a8ce6a6762226d31c938ee and fixed in 6.1.4 with commit e7c0c943ed675b66d4bbb16c51c6a3bb58da047e Issue introduced in 5.2 with commit 4ebe36c94aed95de71a8ce6a6762226d31c938ee and fixed in 6.2 with commit 5c51054896bcce1d33d39fead2af73fec24f40b6 Issue introduced in 5.1.6 with commit e977b1477a6725868302957e6b5c330220391797 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-50473 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/cpufreq/cpufreq.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/3cdd91a9163248935720927531066b74f57aa43b https://git.kernel.org/stable/c/e379b88a8f8cffc99b318e028705ed9e3da0e1e0 https://git.kernel.org/stable/c/8fb4c98f20dfca1237de2e3dfdbe78d156784fd3 https://git.kernel.org/stable/c/d88540acfc7a17079021d866de914112c396edb1 https://git.kernel.org/stable/c/e7c0c943ed675b66d4bbb16c51c6a3bb58da047e https://git.kernel.org/stable/c/5c51054896bcce1d33d39fead2af73fec24f40b6