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 0875F32A3CC for ; Tue, 16 Sep 2025 16:15:32 +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=1758039334; cv=none; b=trFPak1vU2zQkDVkeRAyii7BftTXU5qdzBFh1sYE8eAqtv9r7FkXb3hBPEbsQd3NOXFAOWVTsHPDEzvaeHntb8OSNjMNSIQ8p6xg6D1qfnO6pOtTyRm1wCgu6jPlMRAa++WoDSVvca/AQtdCS0Q6Kvo00Qnhza+SryVURnrsWag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039334; c=relaxed/simple; bh=zcN9TfWe0l0gQa8QhMhuxBtY9RTpumB8LA+W1Q1IQdw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JyJpXMiPBkrbg71/4zHp3zFFe3+TfxyIN1uaZatlzdIxnHuAoCLSlKJyGehXqVjGKFjk3pHkr3zAzD3vyCM3vcyWJ3m9G5x+b1b/Q55fEFjkVuPwe4f3DZMwMfRt+KYlLB0LOwzSk68+duiISO/C4mvajL/Bvd+AXPtolGIwuK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=l6XAXfXP; 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="l6XAXfXP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F35DBC4CEEB; Tue, 16 Sep 2025 16:15:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758039332; bh=zcN9TfWe0l0gQa8QhMhuxBtY9RTpumB8LA+W1Q1IQdw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=l6XAXfXPmULzgobl8Q6Q/js0ovPzjN3fsL2rk/R680SAD2fxymbcQnKl6scG3xS4e pS14VKC5XgbPzySrIYktt20Kc7Prp2F38a+xXnM/Qu3EVyvmqzo4bheA3JOIep6BCY seFRIedKj3/TGO7XkpbE3btiQSLuiBheG9cvo0qw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53318: recordmcount: Fix memory leaks in the uwrite function Date: Tue, 16 Sep 2025 18:12:03 +0200 Message-ID: <2025091643-CVE-2023-53318-633b@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=2549; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UjPivCy0yo5Ql3GLqa258aYcUHPw7EydK9F4bPgxlBo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkne+xvJG2ztE5ryC+4bSKwZ4nGGnv/o6m9X9+d2PXjl 2cOz0rfjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIXCzDgqvTdx5Muc23LNm6 aW/o4ePycZF/Ihjm12QH+zR3lamocwtrP123QKOj6j0PAA== 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: recordmcount: Fix memory leaks in the uwrite function Common realloc mistake: 'file_append' nulled but not freed upon failure The Linux kernel CVE team has assigned CVE-2023-53318 to this issue. Affected and fixed versions =========================== Fixed in 4.14.316 with commit bd39f68a309a947670379bf9a39b16c584f86ddb Fixed in 4.19.284 with commit 444ec005404cead222ebce2561a9451c9ee5ad89 Fixed in 5.4.244 with commit 3ed95a6f6c646e8bb15c354536e0ab10e8f39c08 Fixed in 5.10.181 with commit 2d9ca5f62f2ba160ff9c9be4adf401c46c04edef Fixed in 5.15.113 with commit ff70ad9159fbb566b2c15724f44207e8deccd527 Fixed in 6.1.30 with commit 895130e63c93926f07caf5db286b97bd27b81de9 Fixed in 6.3.4 with commit 25c9b185f121812cbc215fdaa1192c6b9025b428 Fixed in 6.4 with commit fa359d068574d29e7d2f0fdd0ebe4c6a12b5cfb9 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-53318 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: scripts/recordmcount.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/bd39f68a309a947670379bf9a39b16c584f86ddb https://git.kernel.org/stable/c/444ec005404cead222ebce2561a9451c9ee5ad89 https://git.kernel.org/stable/c/3ed95a6f6c646e8bb15c354536e0ab10e8f39c08 https://git.kernel.org/stable/c/2d9ca5f62f2ba160ff9c9be4adf401c46c04edef https://git.kernel.org/stable/c/ff70ad9159fbb566b2c15724f44207e8deccd527 https://git.kernel.org/stable/c/895130e63c93926f07caf5db286b97bd27b81de9 https://git.kernel.org/stable/c/25c9b185f121812cbc215fdaa1192c6b9025b428 https://git.kernel.org/stable/c/fa359d068574d29e7d2f0fdd0ebe4c6a12b5cfb9