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 0F82112D75F for ; Fri, 24 May 2024 15:12:13 +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=1716563533; cv=none; b=Mb2ZU7Laq6BP8s6a7zkd4i/rdzk7uAytcwioxv74smYyXj1VWm0XCddyV6xt/djpK7Z3VRYs34kIeHPfQmV0rW3JX1eNatCOzfKIn0NkkQswiGQ4747UY03OJwxDmdSiX38+1cGJNO+bJPs+N5b7V66wTLV5KwFSpbkD5pQz4nc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563533; c=relaxed/simple; bh=jpB7meYtFNcK+bVGXI2+wa4/Uo/NITJ6ZYuS7gyCX2k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KfUhNdQM++J0NOQMjlqDECtAInCzqKZj91uILdBJ4fStd17OljtKJ9jkeHYOh2eGnfnlIJBnAVRKeSIsOZj/0syYXKo/jRA0uSZL+HXrepwcfwvQBLfsRmumyPI+1/aZzpmB+O9pwPQSMrQ7fTURaiiRGSzif9otCJK+uGWqySQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Jc105Af3; 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="Jc105Af3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 856E0C4AF13; Fri, 24 May 2024 15:12:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563532; bh=jpB7meYtFNcK+bVGXI2+wa4/Uo/NITJ6ZYuS7gyCX2k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Jc105Af3iMiiYIPh64/AH10UO7+lFDaTJRHI80X6HOpWw+r3mbbZXpiayyJXkS2yE B3jUHj1g0a9pN35bvPkHRBvgkdDvqIEEhwovw+ptIa4mUUXRPlo52v3ahZGIz0ioZ1 XOXwaSWxt2o5HeUHndl6xoSfpdi/OvHsDuS3GvDo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47543: perf report: Fix memory leaks around perf_tip() Date: Fri, 24 May 2024 17:10:03 +0200 Message-ID: <2024052439-CVE-2021-47543-a01a@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=2069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jpB7meYtFNcK+bVGXI2+wa4/Uo/NITJ6ZYuS7gyCX2k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa7dsUDw3My4y6p3rOXuvSzfUlmpv2e3vZMKXdSjhQ LKyxTyLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIIkWG+XE2X4Qa5u+O1HTf LMHpVs1rsHv/U4YFm/Z+fsS6OCdh6dWTNZy7VzCtszN6DQA= 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 report: Fix memory leaks around perf_tip() perf_tip() may allocate memory or use a literal, this means memory wasn't freed if allocated. Change the API so that literals aren't used. At the same time add missing frees for system_path. These issues were spotted using leak sanitizer. The Linux kernel CVE team has assigned CVE-2021-47543 to this issue. Affected and fixed versions =========================== Fixed in 5.4.164 with commit df5990db088d Fixed in 5.10.84 with commit ff061b5bda73 Fixed in 5.15.7 with commit 71e284dcebec Fixed in 5.16 with commit d9fc706108c1 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-47543 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/builtin-report.c tools/perf/util/util.c tools/perf/util/util.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/df5990db088d4c7fea9a2f9b8195a7859e1768c4 https://git.kernel.org/stable/c/ff061b5bda73c4f785b4703eeb0848fd99e5608a https://git.kernel.org/stable/c/71e284dcebecb9fd204ff11097469cc547723ad1 https://git.kernel.org/stable/c/d9fc706108c15f8bc2d4ccccf8e50f74830fabd9