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 D9348314D0E for ; Thu, 18 Sep 2025 16:04:52 +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=1758211492; cv=none; b=AxYT4STh4x8DRvX+mql3P3bf7EFssp5tXPY4cBkxfh36gLbysp3NUJ8vQl/1JniuGqIAHUB74/z6rXFU922IVInlwl0J+/VNHWaBHuXDYJfohCS1uM96FLRls1ueXRpAN/tF4k42P1YwtU3OI6qpYqiJ3KiF9teRVkMtcsGd7jM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211492; c=relaxed/simple; bh=qpSsT5xTIXab/fLmexL3Teh4CKfoWHBn7rajsoo+pGU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=byBCyRlMDIGn7O+4pGv/4JYgiJvKk9MEDAcbB/WbxS0O+XeCeWCzrBDBoF/ld471wfaqgutYQiSqzZnH15l+4wAE3nEbX+brEdU9NAd47qKXK5E0kuwP99lrmGjKmF4Yul3xns5Bm1MaHtPXDl3/KE1R3jerLPUnXkIbp+q8po0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v6rq6rdK; 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="v6rq6rdK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DD84C4CEE7; Thu, 18 Sep 2025 16:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211492; bh=qpSsT5xTIXab/fLmexL3Teh4CKfoWHBn7rajsoo+pGU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=v6rq6rdK1kYQrhPQr/kbQ4gICJo9k9zkr2AcKSmS9JWNVa7VHGpWsqgAQsJ7rCFQ5 H2InY/7arpBCWDsJxd5HBGTH3QuXwB5w4tI6rQ8MBFhA/Vr6fb/8Z0uelMYOvxAK8J ZU3g9UR6eQEbzz4QmxoTWLpqf/f+bYE+xWr1F4Y8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53423: objtool: Fix memory leak in create_static_call_sections() Date: Thu, 18 Sep 2025 18:04:14 +0200 Message-ID: <2025091856-CVE-2023-53423-a5ce@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=2581; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZI8WjjLynhNTOBnRfp/k9W4mJ5bPlEce79BsAd3t/2k=; b=kA0DAAIRMUfUDdst+ykByyZiAGjMLWyjdy0JW7fxo3VmS5DGAy+VSEOB2bUuEPf/qIIY1RMP0 YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmjMLWwACgkQMUfUDdst+ynvlACdEkw2 d+wi9ARdZO8kPBpK2YEpgiAAoMWLdU403LSeiksLjJHB84ES2CJ5 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: objtool: Fix memory leak in create_static_call_sections() strdup() allocates memory for key_name. We need to release the memory in the following error paths. Add free() to avoid memory leak. The Linux kernel CVE team has assigned CVE-2023-53423 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 1e7e47883830aae5e8246a22ca2fc6883c61acdf and fixed in 5.10.173 with commit a1368eaea058e451d20ea99ca27e72d9df0d16dd Issue introduced in 5.10 with commit 1e7e47883830aae5e8246a22ca2fc6883c61acdf and fixed in 5.15.100 with commit 3a75866a5ceff5d4fdd5471e06c4c4d03e0298b3 Issue introduced in 5.10 with commit 1e7e47883830aae5e8246a22ca2fc6883c61acdf and fixed in 6.1.18 with commit a8f63d747bf7c983882a5ea7456a5f84ad3acad5 Issue introduced in 5.10 with commit 1e7e47883830aae5e8246a22ca2fc6883c61acdf and fixed in 6.2.5 with commit d131718d9c45d559951f57c4b88209ca407433c4 Issue introduced in 5.10 with commit 1e7e47883830aae5e8246a22ca2fc6883c61acdf and fixed in 6.3 with commit 3da73f102309fe29150e5c35acd20dd82063ff67 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-53423 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/objtool/check.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/a1368eaea058e451d20ea99ca27e72d9df0d16dd https://git.kernel.org/stable/c/3a75866a5ceff5d4fdd5471e06c4c4d03e0298b3 https://git.kernel.org/stable/c/a8f63d747bf7c983882a5ea7456a5f84ad3acad5 https://git.kernel.org/stable/c/d131718d9c45d559951f57c4b88209ca407433c4 https://git.kernel.org/stable/c/3da73f102309fe29150e5c35acd20dd82063ff67