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 AE23C2E62A1 for ; Wed, 1 Oct 2025 11:56:03 +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=1759319763; cv=none; b=TfpyUCYFlgkEmSR1CRvo3D00qXZliZS1XBp9hOyQ7fKdjHImlDpTz1GHrtRRHad0LHA/mPc87djwuq127szsBompnVBJYURuk8D7HRMW+UYv1kY+ssyUN8kDQYbdm3yJoaapdBPjDWsrmBDEAjmA0TOX5pe4jevowwqTkceIjRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319763; c=relaxed/simple; bh=jqBrRrhLskhPHRvXRMdXWkGtkG3tiy/qhB3wFpjaWb4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V265QZ5XaW6rNMHOLw/WtQX2q+/8HuciSsYGSY4onz6d0mW3YoW+Pe6cZw+Q1sIHm1Oz7oW0pLbTnMrSvBO92aAPEm03b+VRY5omiZW0QKejLIWH1Y3pRTWFV+O/W8qeYQ8yjvC3G82Yj9eF2Y221e4Ntw6+3Wd2062I1r01S10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UB3d1LNV; 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="UB3d1LNV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FD1CC4CEF4; Wed, 1 Oct 2025 11:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319763; bh=jqBrRrhLskhPHRvXRMdXWkGtkG3tiy/qhB3wFpjaWb4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UB3d1LNVC0vNaey5wIa7d4bdEaGxZH3QNyt+e9fVQKmv+v0ABnmOiDF1mKkJrvfO1 ob5HBBEN9k0nx2lSZ6er74g2rhIfJ+SXmIeUJrqHUb9net6hjen5C+TXS1oMY1RtjQ C22A+/cUnaRxRXIf3MW2RP0bu0kMfvJCyW1VWfhM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50451: fs/ntfs3: Fix memory leak on ntfs_fill_super() error path Date: Wed, 1 Oct 2025 13:45:21 +0200 Message-ID: <2025100117-CVE-2022-50451-418f@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=2662; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KwECSmK+e72oyXTpzkgVxwLzdGU6upJogoe5C9RnMmE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RXxj7D057njY3r4xbf42X0sNhV6j3CC2jO6wpX2rm HcVpER3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQeszEsWMyyOZPp3418geuz DqVp3y06qyd9kmGu2OPc7RYfrlSvZVrS6Nqxd5Iwx6F4AA== 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: fs/ntfs3: Fix memory leak on ntfs_fill_super() error path syzbot reported kmemleak as below: BUG: memory leak unreferenced object 0xffff8880122f1540 (size 32): comm "a.out", pid 6664, jiffies 4294939771 (age 25.500s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 ed ff ed ff 00 00 00 00 ................ backtrace: [] ntfs_init_fs_context+0x22/0x1c0 [] alloc_fs_context+0x217/0x430 [] path_mount+0x704/0x1080 [] __x64_sys_mount+0x18c/0x1d0 [] do_syscall_64+0x34/0xb0 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd This patch fixes this issue by freeing mount options on error path of ntfs_fill_super(). The Linux kernel CVE team has assigned CVE-2022-50451 to this issue. Affected and fixed versions =========================== Fixed in 5.15.87 with commit 2dd9ccfb06bcdad30ad92d96c3affa38a458679e Fixed in 6.0.17 with commit ff0df7d9cdbb12878155168b5234e99029e5377f Fixed in 6.1.3 with commit 2600c80ea7b39f987c3fa89287e73d62e322bbbd Fixed in 6.2 with commit 51e76a232f8c037f1d9e9922edc25b003d5f3414 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-2022-50451 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/super.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/2dd9ccfb06bcdad30ad92d96c3affa38a458679e https://git.kernel.org/stable/c/ff0df7d9cdbb12878155168b5234e99029e5377f https://git.kernel.org/stable/c/2600c80ea7b39f987c3fa89287e73d62e322bbbd https://git.kernel.org/stable/c/51e76a232f8c037f1d9e9922edc25b003d5f3414