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 8E78C4A4998 for ; Thu, 24 Sep 2026 16:14:19 +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=1790266460; cv=none; b=tOoxtAltxk58McSVP0W+LRlh3X128YhAgMOLmpqp8eU+SYJT3jg4B8QGNBQFl0+WSVV/k0OP/qrdFEDK1zQgJvakz0esWieCo+JfnGx87ZfRd6SYmaxGCMYd0HFoWQPtWbWPvuSyCy/w5asVTmc+6zzZqiGl9TbmKsc81gVZApE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266460; c=relaxed/simple; bh=G+Bxwx86eYqAEFAcuz3GdiW95FEaeJEUn8WHDeEijUs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O4NqcNDuryxO6u1uadYEjqAM/a36GTItKqMQwE49hSx21Crm4pN8mbuO/zZcVK8f5YOgUJXFSrVySZ7O6ACeAtz+JF2vXARAMGDTcORlanZLT98IISEJCRrtnz2COiqm0RrPIiZyv49uVz6MLxpCdS/NHC0nwaDaqCrnn+By0ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sVWNnmYh; 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="sVWNnmYh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91EDF1F000FF; Thu, 24 Sep 2026 16:14:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266459; bh=epsomg5WIF8onXBRfcpOa/FPqNd7SHZU5dxO3pL8Oks=; h=From:To:Cc:Subject:Date:Reply-To; b=sVWNnmYh4TQmVEUc9pwmZZQd6slTUjkrLeLONVbYoZwPkWr1/8ekXCtQ6rX3RL5sZ 0Fi7hr3OVXgxo1OTAP/TT73iafjMEYD3FwJ+qFoYSp3QRWoBP9jyKLs5pe7aoJWWfC EfaZHIN+nH8WM/k8I1FqQuDD/wB8JZbb8xoWrAJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97439: fs/ntfs3: preserve non-DOS attribute bits in system.dos_attrib Date: Thu, 24 Sep 2026 18:03:39 +0200 Message-ID: <2026092431-CVE-2026-97439-9460@gregkh> X-Mailer: git-send-email 2.55.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=3550; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pvKXOdQToZRivX5LEAQUMpbkxN7UFMMN2Kn6dJdzQ1Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPaf/T6r9NOmo/fNXfjcZrNsO31GZfolJwHLRwrs68 YIaW0XzOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiE2wZFiwI3KDafEZrQ+/E M6kJ8nHMBj1P2hgWbPx+ZNXrPtdav6LgUDbXiIvMK/qFAA== 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: preserve non-DOS attribute bits in system.dos_attrib [BUG] A corrupted ntfs3 image can hit a NULL function pointer call in generic_perform_write() after toggling system.ntfs_attrib and then overwriting system.dos_attrib on the same file. BUG: kernel NULL pointer dereference, address: 0000000000000000 \#PF: supervisor instruction fetch in kernel mode \#PF: error_code(0x0010) - not-present page PGD bed5067 P4D bed5067 PUD 0 Oops: Oops: 0010 [#1] SMP KASAN NOPTI RIP: 0010:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0018:ffff88801025f988 EFLAGS: 00010246 Call Trace: generic_perform_write+0x409/0x8c0 mm/filemap.c:4255 __generic_file_write_iter+0x1bb/0x200 mm/filemap.c:4372 ntfs_file_write_iter+0xcd9/0x1c20 fs/ntfs3/file.c:1253 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x63b/0xf70 fs/read_write.c:686 ksys_write+0x133/0x250 fs/read_write.c:738 __do_sys_write fs/read_write.c:749 [inline] __se_sys_write fs/read_write.c:746 [inline] __x64_sys_write+0x77/0xc0 fs/read_write.c:746 ... [CAUSE] system.ntfs_attrib updates ATTR_DATA flags via ni_new_attr_flags() and switches i_mapping->a_ops to ntfs_aops_cmpr when FILE_ATTRIBUTE_COMPRESSED is set. system.dos_attrib then overwrites ni->std_fa from a one-byte DOS attribute value, clearing the compression bit without updating ATTR_DATA or the mapping operations. Old buffered writes use is_compressed(ni) to choose __generic_file_write_iter(). That leaves generic_perform_write() calling a NULL write_begin callback from ntfs_aops_cmpr. [FIX] Treat system.dos_attrib as a low-byte DOS attribute update and preserve the existing non-DOS attribute bits in ni->std_fa. This keeps compressed and sparse state consistent with ATTR_DATA and the mapping operations while keeping the existing DOS attribute semantics intact. The Linux kernel CVE team has assigned CVE-2026-97439 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit 2de91ae285b0b878604d2bd83c3c395a8071e482 Fixed in 6.18.53 with commit 407ee19828a7d9700969ed9cc53be50d0f533619 Fixed in 7.2 with commit b1c1101067d9536bcb0fe023b96ee2dde5535959 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-2026-97439 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/xattr.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/2de91ae285b0b878604d2bd83c3c395a8071e482 https://git.kernel.org/stable/c/407ee19828a7d9700969ed9cc53be50d0f533619 https://git.kernel.org/stable/c/b1c1101067d9536bcb0fe023b96ee2dde5535959