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 DCB3E1DE3AB for ; Wed, 26 Feb 2025 02:06:39 +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=1740535599; cv=none; b=oKjsomKwYNwURC+IxohFylnkwvMUnEqCbURpkp4tiJY4XXfwZgC2ZEIF65v2GjrMMIAwTIQLOhB/Cbla2++FJQLzrfzr/M2aV0RFyg/qMEJVJIdJGgnNYjRK0M9PYGsj6jXHQUveiTrXGSauJL/E3ODpzILMAp/E5LZrIw0ChhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535599; c=relaxed/simple; bh=KAW8hSbYN/wcNnB+Cys70mh93DnUPpMnkOHWC50BAKk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SBi7GERx1eiSMpCWRtastukRwRBkO0wQrqsxiXlYOtisxMnZ3ojlICx+SQ73y4nKzR3qIOHhH5bm9xhQMqYsJGBETf4dKsbj8YNB/mH5LJHR2K+nAz974sO+AkW3uZgbc3C5+rxTxIIQyi4n8nSwIXubOboGaPNOB0jEv3lFwrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tL2Kp033; 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="tL2Kp033" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A05CC4CEDD; Wed, 26 Feb 2025 02:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535599; bh=KAW8hSbYN/wcNnB+Cys70mh93DnUPpMnkOHWC50BAKk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tL2Kp033bYvt/qLOFmWY5WhlQXVTTjM0XJ7xzqo0Aywje/X4YtiqV7ueiBPfV9FyV c9On5+Al5/yMmMA64IB3ZJXX+F3Yuwt3msqaO36faVrM+x2UW1L3t6H4l+Cx/QvftK BQQu6GDZKJIu135ZDbdH7u0cCCeT4BpGFb/B3VdE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47660: fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replay()' Date: Wed, 26 Feb 2025 03:04:54 +0100 Message-ID: <2025022652-CVE-2021-47660-af30@gregkh> X-Mailer: git-send-email 2.48.1 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=2422; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KAW8hSbYN/wcNnB+Cys70mh93DnUPpMnkOHWC50BAKk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yo5khb7Nk3JNkl/M+yyiIFpzZavv9qLWacpNjK59B 36eNN3REcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5kcgwv7RhtyLbrZb5dmfV Xi4Wmp0mdmF9HcMczvzbd8TnHxSv0BRMbenNm7zKeMlOAA== 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: fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replay()' All error handling paths lead to 'out' where many resources are freed. Do it as well here instead of a direct return, otherwise 'log', 'ra' and 'log->one_page_buf' (at least) will leak. The Linux kernel CVE team has assigned CVE-2021-47660 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.15.46 with commit d8be98ab88250dc12a98efdb703792a537b0eac3 Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.17.14 with commit bc4a1d384a04c6dba9312e1421a9f9f7c03339a4 Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.18.3 with commit 2c97519ed6b4239594c58ddacf3d0d576cf070cc Issue introduced in 5.15 with commit b46acd6a6a627d876898e1c84d3f84902264b445 and fixed in 5.19 with commit e589f9b7078e1c0191613cd736f598e81d2390de 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-2021-47660 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/ntfs3/fslog.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/d8be98ab88250dc12a98efdb703792a537b0eac3 https://git.kernel.org/stable/c/bc4a1d384a04c6dba9312e1421a9f9f7c03339a4 https://git.kernel.org/stable/c/2c97519ed6b4239594c58ddacf3d0d576cf070cc https://git.kernel.org/stable/c/e589f9b7078e1c0191613cd736f598e81d2390de