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 4E77312D1EB for ; Fri, 24 May 2024 15:11:15 +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=1716563475; cv=none; b=aVVWOMHPS9y00FVVQqgxhTk72TeX7KMCcYP5b9uYqzuRiLnvAnbgfj07c7hwqsjLt65b2jttxUIsU3/s75zm6LGP+zmUocuLxKE5lo5agHoVGR3q5StqSVUq/C/VAYoLiPZDVAgatVBtVvKTtxzrEeXKuvYuKa3Lwdx5zpumgSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563475; c=relaxed/simple; bh=0iWAUJUjS/T38qEIpzVevyj7jzdW+1uvAvXDOiyHg1E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d4o1n/E1FuZaS18c3pysQMAfJ2BRJeh6FuQ6S0DpIDBjmXNv85KmDCt0JJMBSkgV9af1ava6Txn73YoDUWSy2GtLeCTuchty1Dp/pdY4jQpTlFlep3T6FKYanBNMUsDSQo0LyCA0XlTuKc5MD7hwPkuqrkHOvlhRKoBHDNVS+vk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WUaFLrLx; 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="WUaFLrLx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9C15C2BD11; Fri, 24 May 2024 15:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563475; bh=0iWAUJUjS/T38qEIpzVevyj7jzdW+1uvAvXDOiyHg1E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WUaFLrLx++32TcpszvBjOBNUGLOY9Q+W64W15uqeUWM/lXJYkKJFXMVg62mEqIAU0 p6zH3IP8MdQes9a2+V6iWBesODDG2XbyWEK1SBuDL0X3vbTP3Uwa6Ayxk4XpCgIWzI PFvAPARSgaX3R9zN3tH96w+09dP5B5DUvxQXWzcM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47545: perf hist: Fix memory leak of a perf_hpp_fmt Date: Fri, 24 May 2024 17:10:05 +0200 Message-ID: <2024052440-CVE-2021-47545-0f72@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=2253; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0iWAUJUjS/T38qEIpzVevyj7jzdW+1uvAvXDOiyHg1E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa7co7ls49feNT7HBWSeDLTo1ub6KGnxcnFKREiYc5 LDgT2RPRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykOIlhQVPjsdfrWcxTCidY KlWU3IqqKTf8z7DgcGYOB299tqrpa4OIrelxSo9NV00FAA== 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: perf hist: Fix memory leak of a perf_hpp_fmt perf_hpp__column_unregister() removes an entry from a list but doesn't free the memory causing a memory leak spotted by leak sanitizer. Add the free while at the same time reducing the scope of the function to static. The Linux kernel CVE team has assigned CVE-2021-47545 to this issue. Affected and fixed versions =========================== Fixed in 4.14.257 with commit c5c8a26c0dc6 Fixed in 4.19.220 with commit 24a139c105fa Fixed in 5.4.164 with commit b380d09e44e8 Fixed in 5.10.84 with commit a4c17ebdd624 Fixed in 5.15.7 with commit 5b5c6f57a1f8 Fixed in 5.16 with commit 0ca1f534a776 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-47545 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: tools/perf/ui/hist.c tools/perf/util/hist.h 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/c5c8a26c0dc69a400553245e92d741fe55f91095 https://git.kernel.org/stable/c/24a139c105fa0f7f99888cf328bf6a02fc841675 https://git.kernel.org/stable/c/b380d09e44e8479e71e3ae8446b515a5b3166244 https://git.kernel.org/stable/c/a4c17ebdd6249cb4e061358d3693383f6628e069 https://git.kernel.org/stable/c/5b5c6f57a1f81499db4c8ea597898cb1b87de0b6 https://git.kernel.org/stable/c/0ca1f534a776cc7d42f2c33da4732b74ec2790cd