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 5E034142634 for ; Tue, 21 May 2024 14:38:32 +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=1716302312; cv=none; b=QDQCr0ht9hJMHw6bx0gbhAT32ZzodiCfDqOo2Gw51qdGd10nPJSxVtyJWRvSKPtpMpLcJzyvCq4KCDJvtba8x9Fieuom9K4lVMYs4d0cdIfAjNQPnB/WFMkpQ5W03Nb7bIUnZtL63vOKITP5hWzqNpOEfMNpabCvEO5Et1A+yVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302312; c=relaxed/simple; bh=YvyWSxCqU1qF+fnRYfW/EHxMHmY+dz0DNXS5OZF979s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Kduha6Y0L8yKK3JjfzfYbtXYKebeypQP9K9R20bP3lfYm4uM7QIxZxnjDfbLf2zywPP2oW27UZ5a4QBFXItcggyQHDf1bfKfq85k6PxQKgE9Ha1xY90ZzbwVUEBb7K5MXsvzMlEzEeIZi5+7Qak8+SRyKvF0F22k41k14m4BIzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hT6h7d5M; 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="hT6h7d5M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDB13C2BD11; Tue, 21 May 2024 14:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302312; bh=YvyWSxCqU1qF+fnRYfW/EHxMHmY+dz0DNXS5OZF979s=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hT6h7d5Mlce0iYxaI5vU1URG+Qme3yrtmOWL8tp/SPAwO7ONcNiEHBFkoIF2zmeyW j5aXujVmoQkMZdj9hMsADEi074TeGsziSz0tH/Bx8Tm2bH59nqZPub9qTWGs0SwGV3 UdLzAJIbvt2uLVQ92LaSEVMB1WloA1aFjwymJJUE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47313: cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init Date: Tue, 21 May 2024 16:35:47 +0200 Message-ID: <2024052129-CVE-2021-47313-af10@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=1996; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YvyWSxCqU1qF+fnRYfW/EHxMHmY+dz0DNXS5OZF979s=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+Gw1dvi567WDhXzmrZfs07viwfneNtR8zVrhyfFopu 8D90G6BjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIOT6GBbPvLpt/U+Zf8JlE h/rT7EuEz26ybmGYp/UocNUrK35GhrPnnrf8C/OY21L5HQA= 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: cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init It's a classic example of memleak, we allocate something, we fail and never free the resources. Make sure we free all resources on policy ->init() failures. The Linux kernel CVE team has assigned CVE-2021-47313 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 5.12.19 with commit b77538335575 Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 5.13.4 with commit e1b2b2b61d30 Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 5.14 with commit fe2535a44904 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-47313 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/cppc_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/b775383355755885b19d2acef977f1ca132e80a3 https://git.kernel.org/stable/c/e1b2b2b61d30d7ce057ec17237c217d152ed97f2 https://git.kernel.org/stable/c/fe2535a44904a77615a3af8e8fd7dafb98fb0e1b