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 C88A11E7C18 for ; Mon, 21 Oct 2024 12:02:34 +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=1729512154; cv=none; b=nVIQ3BNesWKlbuM/wQ2YrTJcTHYlqG9Zl7yK4s3tJnx9ps9J7iKsd90qhZOeUseq+f229a/SjjbSnVUwFtgAVNo/d0ouoOkHjE/lqL0ZHFBc2q3k0o3kllklH9i2TXVwv0U7gw2BcY0IfPXi/ylxxL7V+Oycfp5b/IjEXZLQT7s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512154; c=relaxed/simple; bh=1LmZViJZwRQuMdDq4SMM5jnaJp0fGYEVg6/xVinnP14=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GAro6H19heZ24lscu7rCG6RuJ6vapmWlTVhejeWciUAhwXeZysIjniqFMlMg4Q7PJgsKxqZ5x0fE/GQ4rF0tjhftbuaJnT5RnSy7N4On/gOaj645Xd61suiFg1TBGxoFAFJ5OwSLkMFaJIMt6SM3vzb93ThV0r/8qU0YXPP5PG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FOgJBYKX; 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="FOgJBYKX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F7E9C4CEE7; Mon, 21 Oct 2024 12:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512154; bh=1LmZViJZwRQuMdDq4SMM5jnaJp0fGYEVg6/xVinnP14=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FOgJBYKX9LeDvU+HODgfEMmtURLY914wCHzp10pBz9YCuNT4i4dTj/PrrzemhNlDT WG4JkWERS5YlMFT5mK0BOS5uBGuJIYJSSBz2m2qvPC41dyq3CUNWZJ9A10fkWmW9jJ 1m9upV6kuQaAH2PLizUNbOaOCqgO5XIrgLz47e5A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47677: exfat: resolve memory leak from exfat_create_upcase_table() Date: Mon, 21 Oct 2024 14:00:05 +0200 Message-ID: <2024102106-CVE-2024-47677-714d@gregkh> X-Mailer: git-send-email 2.47.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=2142; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1LmZViJZwRQuMdDq4SMM5jnaJp0fGYEVg6/xVinnP14=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTm6v90zf+ur9t6ZT38IO3VkvrX1m3b9tmzuPJr0+2 DMrNTX1WkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZNM1hvnutQp3dzhuYUmy LD/pZFfl4ib77jjDPMu3Bgb/ggXnbXt24ALPnJyLted3NwMA 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: exfat: resolve memory leak from exfat_create_upcase_table() If exfat_load_upcase_table reaches end and returns -EINVAL, allocated memory doesn't get freed and while exfat_load_default_upcase_table allocates more memory, leading to a memory leak. Here's link to syzkaller crash report illustrating this issue: https://syzkaller.appspot.com/text?tag=CrashReport&x=1406c201980000 The Linux kernel CVE team has assigned CVE-2024-47677 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit a13d1a4de3b0 and fixed in 6.10.13 with commit f9835aec4967 Issue introduced in 6.8 with commit a13d1a4de3b0 and fixed in 6.11.2 with commit 331ed2c739ce Issue introduced in 6.8 with commit a13d1a4de3b0 and fixed in 6.12-rc1 with commit c290fe508eee 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-2024-47677 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/exfat/nls.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/f9835aec49670c46ebe2973032caaa1043b3d4da https://git.kernel.org/stable/c/331ed2c739ce656a67865f6b3ee0a478349d78cb https://git.kernel.org/stable/c/c290fe508eee36df1640c3cb35dc8f89e073c8a8