Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 587D9318B85 for ; Wed, 27 May 2026 12:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779885491; cv=none; b=mruPzflVNrIn9DUYYVyJKOGmt0OzBc26T7tXftMH+g/nedlGPFzahQNjYKZsp6LZsNF46DMej7xgTA9ELEvfZnO0HAMqUsjUsXdN6Y+UVJiZdDRkYnWBM9+VHPpt9Bxz8TCYvMeRi6XNP1gh6vH84z8S/bzwBXWxfhTO5ttVG9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779885491; c=relaxed/simple; bh=g7rGjA5joMw0Lw2M/3zSpqOZuXdfVIUt6rT0g2UPY3U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g/cG9MOX2JACr+dHLeMJ/du22lq62gZ4RDEBSlRuScOHIPyW5wUaXo45cBPpIvGcYEyM+KBA7RNlfs1J2FaHn9wJ2LkRBu+HOPgx/3iUDDT12EFSwYJYVwkTyQT/bvZPuZk8AVsT1VXi9Ej/+aENv4uTP9VPfYIKF7o+wlVHWgQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jM3W0gYC; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jM3W0gYC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BBEB1F000E9; Wed, 27 May 2026 12:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779885489; bh=kfdOLdQ0hCEDoSbxOylf0Bkl27Zf3wjd9FcOj+PMTio=; h=From:To:Cc:Subject:Date:Reply-To; b=jM3W0gYCFFuyy+3ipH5/NKOF1qujIOgzzoGe4Hcfd3XxcyxYN+E8gJ/u/OIbV5ZQ5 3kIdDNhuJN2o0Au3xw3Y72ib8QIJ/d86ZUnS0VefuXsTWtdfhr3QLKMc1OMeSWmRBU mr85pNTvii3wGezcpxYPYOlONnBAVt9eRnznMky4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71312: fs/ntfs3: fix ntfs_mount_options leak in ntfs_fill_super() Date: Wed, 27 May 2026 14:23:17 +0200 Message-ID: <2026052716-CVE-2025-71312-7652@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3000; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EGnchXwIueMSeZthEt8igrTomPtFCwAVEjbnwgHxnq4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlij0wau/0bhbR+WDMeNjty5dOtF1+1T3BZJ334HCe07 aXT/KnnOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAipccZ5hepMR098LjhouG5 brP/e5euqf1wJ5JhwTaHw3pX86Y6O0iEv+K/sWDC0ftGbwE= 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 ntfs_mount_options leak in ntfs_fill_super() In ntfs_fill_super(), the fc->fs_private pointer is set to NULL without first freeing the memory it points to. This causes the subsequent call to ntfs_fs_free() to skip freeing the ntfs_mount_options structure. This results in a kmemleak report: unreferenced object 0xff1100015378b800 (size 32): comm "mount", pid 582, jiffies 4294890685 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 04 00 00 ................ backtrace (crc ed541d8c): __kmalloc_cache_noprof+0x424/0x5a0 __ntfs_init_fs_context+0x47/0x590 alloc_fs_context+0x5d8/0x960 __x64_sys_fsopen+0xb1/0x190 do_syscall_64+0x50/0x1f0 entry_SYSCALL_64_after_hwframe+0x76/0x7e This issue can be reproduced using the following commands: fallocate -l 100M test.file mount test.file /tmp/test Since sbi->options is duplicated from fc->fs_private and does not directly use the memory allocated for fs_private, it is unnecessary to set fc->fs_private to NULL. Additionally, this patch simplifies the code by utilizing the helper function put_mount_options() instead of open-coding the cleanup logic. The Linux kernel CVE team has assigned CVE-2025-71312 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit aee4d5a521e94f658e46c904e08a473daa9c8fc0 and fixed in 6.19.4 with commit dac871d833b09495198dcac81d2ebaa8db11acbc Issue introduced in 6.19 with commit aee4d5a521e94f658e46c904e08a473daa9c8fc0 and fixed in 7.0 with commit f7edab0cee03a1cbe0e55a7bcab8d2d8b6b74278 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-2025-71312 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/dac871d833b09495198dcac81d2ebaa8db11acbc https://git.kernel.org/stable/c/f7edab0cee03a1cbe0e55a7bcab8d2d8b6b74278