From mboxrd@z Thu Jan 1 00:00:00 1970 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 3CFBEA55 for ; Wed, 21 Aug 2024 00:07:58 +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=1724198879; cv=none; b=X5vq7XUvIDEIZiuXqO1hHIeTQZnbQdZUhpxrtlWtKpj5UF9M/ChBeKwf45IwgCYaCjOZXG0NH+fVuuiN0gjEgj5YKzLBB6TBhDNgOJpiJxYOKxyp+WAmBWhGFpaFOQ+x+GIjRk/JqlMtp1jMlxmyH1QPaM9IbHbhEOYuZFy3bSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724198879; c=relaxed/simple; bh=azgju+vBT3Ri+Pfat5tkxuO2DSj0KezlGf7XeqKoQmM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V44gErbrdxF6O/lFHXXy8+NqzjShOXOnDPoxs0lgNK9hdO0N5PWSNKipq+pSJA5N9CscZgxoPSMWZaRSeVGq/x7zJUrYz2eXUvxFdHa8QCAl2suMg7UPtIsESSDRcZTjX2HI2d5pxVpvkKbkQS0e/EHXdTTapPwvWhZldHzIyQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XB+3f3ZE; 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="XB+3f3ZE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59FB6C4AF09; Wed, 21 Aug 2024 00:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724198878; bh=azgju+vBT3Ri+Pfat5tkxuO2DSj0KezlGf7XeqKoQmM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XB+3f3ZEoJbAHgzsrokBGnPPRozIbaN1WRyDzMfwwzvl+f8aOKF599Ew8W9c00GB3 PUhwCYvCMeEShC9MNyW7CAerNlmVWxNFd1wa+YdySDZBJV3BjoMxAZlwaTjLJkYtvX upoC+zCs2TmZK+Ov2PtySJca0h19MTnUdP1hZ0Wg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43871: devres: Fix memory leakage caused by driver API devm_free_percpu() Date: Wed, 21 Aug 2024 08:07:35 +0800 Message-ID: <2024082136-CVE-2024-43871-c2cd@gregkh> X-Mailer: git-send-email 2.46.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=2908; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=azgju+vBT3Ri+Pfat5tkxuO2DSj0KezlGf7XeqKoQmM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlH9U+cPMagmfXrutwiid3ikb7+i3zX9AsuXN52bZJox tHc41u3d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE9BsY5mfe6yxOap4R8knc 6RGn7abKf3ONmxnmSqpsyVSo3P247BmP7SzBcxp58Q2mAA== 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: devres: Fix memory leakage caused by driver API devm_free_percpu() It will cause memory leakage when use driver API devm_free_percpu() to free memory allocated by devm_alloc_percpu(), fixed by using devres_release() instead of devres_destroy() within devm_free_percpu(). The Linux kernel CVE team has assigned CVE-2024-43871 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 4.19.320 with commit 700e8abd65b1 Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 5.4.282 with commit b044588a16a9 Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 5.10.224 with commit ef56dcdca8f2 Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 5.15.165 with commit 3047f99caec2 Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 6.1.103 with commit 3dcd0673e476 Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 6.6.44 with commit b67552d7c61f Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 6.10.3 with commit 95065edb8ebb Issue introduced in 4.10 with commit ff86aae3b411 and fixed in 6.11-rc1 with commit bd50a974097b 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-43871 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/base/devres.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/700e8abd65b10792b2f179ce4e858f2ca2880f85 https://git.kernel.org/stable/c/b044588a16a978cd891cb3d665dd7ae06850d5bf https://git.kernel.org/stable/c/ef56dcdca8f2a53abc3a83d388b8336447533d85 https://git.kernel.org/stable/c/3047f99caec240a88ccd06197af2868da1af6a96 https://git.kernel.org/stable/c/3dcd0673e47664bc6c719ad47dadac6d55d5950d https://git.kernel.org/stable/c/b67552d7c61f52f1271031adfa7834545ae99701 https://git.kernel.org/stable/c/95065edb8ebb27771d5f1e898eef6ab43dc6c87c https://git.kernel.org/stable/c/bd50a974097bb82d52a458bd3ee39fb723129a0c