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 D2317341ADF for ; Mon, 15 Sep 2025 14:49:26 +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=1757947766; cv=none; b=UusB6uTwIGr5oSyK9JfV5gaRxKaDK1no+yAGLvMb6X3PezgGeaQzQAQZb33YT0dyC/+o7liS2oO20Dw4Q/HHejz0spx5m0EP5TgqjEyQlfvE/Gz+MtV4nQUGTjaISinnduviEsR56vIap1mofHBdlEZ1LC+K0Cm5CK5jrCBX/gQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947766; c=relaxed/simple; bh=GkYdp8UIsqivtsz2wHr8ehSFj/vZsmRE8M3hr0EQegw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J5UV5tItjqZnN3cJOHFN6Z+JDM15mRgCV1ce4Ilyyrjo7AoVnAe1HFAHk6I2UoGphol07fJdJa/EDqTLTXs12BHBpsJRz1Tm96H6DaLjBA+ghevvGBcxpcJW4nkO44Pff2Erlj3deT5PdUaMqCOcRW0/V8Qe1IaEGziMh1QuQvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1fP5eIkm; 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="1fP5eIkm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6B0CC4CEF1; Mon, 15 Sep 2025 14:49:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947766; bh=GkYdp8UIsqivtsz2wHr8ehSFj/vZsmRE8M3hr0EQegw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1fP5eIkmRzp87bYybG73egKMTco8zI80kQmfnMlXjiVhtUyLgpJ3oPx1zAAJVg4dn 9rj50xuzVmz1vUa2tzAqDGEE8UzdajaI7B7terzvpowfAbp5suJ+y6qoAthzCj86AL 8TgUOOn+yk327M8rFmKfgoS1NRDYL8fEB9I+q/rY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53261: coresight: Fix memory leak in acpi_buffer->pointer Date: Mon, 15 Sep 2025 16:46:36 +0200 Message-ID: <2025091504-CVE-2023-53261-6a1a@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=2826; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rt+gPy/SA9oLKHzPS9d1ZbF6mblSzqjyOWXZW99SNlc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1NborTE6/7qopfu30mbHP9+e58z8LxK6W98tNlik7 P7umlvHOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibk4M8+OssnlT09/eX6vP 9qFYp24DS6atBMP8rJksJQscClUE1j//Jatw8Upt0+GNAA== 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: coresight: Fix memory leak in acpi_buffer->pointer There are memory leaks reported by kmemleak: ... unreferenced object 0xffff00213c141000 (size 1024): comm "systemd-udevd", pid 2123, jiffies 4294909467 (age 6062.160s) hex dump (first 32 bytes): 04 00 00 00 02 00 00 00 18 10 14 3c 21 00 ff ff ...........] __kmem_cache_alloc_node+0x2f8/0x348 [<00000000b0fc7ceb>] __kmalloc+0x58/0x108 [<0000000064ff4695>] acpi_os_allocate+0x2c/0x68 [<000000007d57d116>] acpi_ut_initialize_buffer+0x54/0xe0 [<0000000024583908>] acpi_evaluate_object+0x388/0x438 [<0000000017b2e72b>] acpi_evaluate_object_typed+0xe8/0x240 [<000000005df0eac2>] coresight_get_platform_data+0x1b4/0x988 [coresight] ... The ACPI buffer memory (buf.pointer) should be freed. But the buffer is also used after returning from acpi_get_dsd_graph(). Move the temporary variables buf to acpi_coresight_parse_graph(), and free it before the function return to prevent memory leak. The Linux kernel CVE team has assigned CVE-2023-53261 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 76ffa5ab5b79c250b9744b7f8bdd835db426a1ae and fixed in 6.5.3 with commit d1b60e7c9fee34eaedf1fc4e0471f75b33f83a4a Issue introduced in 5.3 with commit 76ffa5ab5b79c250b9744b7f8bdd835db426a1ae and fixed in 6.6 with commit 1a9e02673e2550f5612099e64e8761f0c8fc0f50 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-2023-53261 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/hwtracing/coresight/coresight-platform.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/d1b60e7c9fee34eaedf1fc4e0471f75b33f83a4a https://git.kernel.org/stable/c/1a9e02673e2550f5612099e64e8761f0c8fc0f50