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 C69EC2E1EE0 for ; Tue, 7 Oct 2025 15:26:08 +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=1759850768; cv=none; b=rubYN7fUBOY8Dlx1Lm4RYoJyQu4K6kMNjgmLlIj0N+Da67KYFuy9yqaax2LaITxojcyOgKg4nt+vu3QtZFtIMvIGEm85Zh29ARay/sFMoJjvse4V1nFmfPXUzc3Oisort0EDkK/ZYCe+YyoInmrN+ufQBJggjH37y2p9Dfv2xok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850768; c=relaxed/simple; bh=4QuvScKeSjCa3uErhu6uU4a1JUuHqD0pm0gpHWIPd68=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MLA6jhEHV4TxUjimHqLBY4FHadL2fxxSrVwd2Z4kZU/EDUYKN+qC0+xyTFEZV3Vqd2j8gOtCaz5rKOGY2BmgCZQZ6jDkj4ztbmwBILGHFS0W1OrRYEM7Q3EnmV9mQdc5h6+FziaOHu4Tdvjfs4pxuDC4OTl21pC/De1sqUJaOB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2Izj+Mbg; 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="2Izj+Mbg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BC6BC4CEFE; Tue, 7 Oct 2025 15:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850768; bh=4QuvScKeSjCa3uErhu6uU4a1JUuHqD0pm0gpHWIPd68=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2Izj+MbgpW2miK3/pBPrazu8p3e7kGdHXY8Ge1QidYe09TOZ8dHAzCCu/gmMcFZB9 v9caUvwORRocB1n58N9XX5U6Th8cbQiTvOWieqmRrOroRcT+rMPE/qgBoT39LnRGWr JHds10tG4B5YCJ+2setY6AqkIldDL5deni47KSOU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53662: ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup} Date: Tue, 7 Oct 2025 17:21:21 +0200 Message-ID: <2025100703-CVE-2023-53662-475f@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=2247; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JOwYNdjmaIOdY2jwWB69ytnbauW5X9lO35GGleEvMkI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9e9LNp9ecKP4hUvkK2NO/w07m2bW37myysdqyowTp fcYD0grd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEGmYxzNMVfvJUZf+Sve+P WjA8SnJseCh6bzrDfL+jXhLqU44ohn1dmmlSGLi9/ln+awA= 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: ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup} If the filename casefolding fails, we'll be leaking memory from the fscrypt_name struct, namely from the 'crypto_buf.name' member. Make sure we free it in the error path on both ext4_fname_setup_filename() and ext4_fname_prepare_lookup() functions. The Linux kernel CVE team has assigned CVE-2023-53662 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 1ae98e295fa2577fb5e492200c58d10230e00e99 and fixed in 6.1.54 with commit 1fb3f1bbfdb511034b0360dbeb0f6a8424ed2a5c Issue introduced in 5.13 with commit 1ae98e295fa2577fb5e492200c58d10230e00e99 and fixed in 6.5.4 with commit 36daf050be3f6f067631dc52054de2d3b7cc849f Issue introduced in 5.13 with commit 1ae98e295fa2577fb5e492200c58d10230e00e99 and fixed in 6.6 with commit 7ca4b085f430f3774c3838b3da569ceccd6a0177 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-53662 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: fs/ext4/crypto.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/1fb3f1bbfdb511034b0360dbeb0f6a8424ed2a5c https://git.kernel.org/stable/c/36daf050be3f6f067631dc52054de2d3b7cc849f https://git.kernel.org/stable/c/7ca4b085f430f3774c3838b3da569ceccd6a0177