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 6A8B41F8AC5 for ; Wed, 16 Apr 2025 14:16:21 +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=1744812981; cv=none; b=T22PhVXcyVDq/5SMMccjEzlnEp6zeXnjf1UboTtvbyEWheA+mtU/iP6Ne6FqJ49sT+EcraLxUINytE4qnOA4DFZnFEfcwBzo9HV/pC00VNN9zKY38t+B6WViw35P18uVeUlJuUQ6L/jVwTZLDF0kOxL719KPZkp2E5EzRS054wQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812981; c=relaxed/simple; bh=SgQpS2bbI1zS/MNxkfrX+TY4oN/Swx/S3ZX6d20MBOA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jtj1IrS/tc64LXzbUve9l3GpMuPEIKJylrMHXnzM5P9CG6JiGX2Zo6z9QOQK1Y1YDm9SUdTKeSIIFteMt/Mh999OVffh1OE7uScEqfq+2CWGbbt90jrSOXNb1GCoDqqoiid05tJOR8lEJiQ7qIiP0MHTCbMOVwPovFj2JzT/zs8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Go6vG7aQ; 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="Go6vG7aQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE577C4CEE2; Wed, 16 Apr 2025 14:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812981; bh=SgQpS2bbI1zS/MNxkfrX+TY4oN/Swx/S3ZX6d20MBOA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Go6vG7aQlMfQ0QZdeGRdODiBC0y6mHCjG7xZYBdSSXjGQCYdPs+E6jd/auCXscYxL EGMu2E5XuH4m82akEPi9jiK+UBE886uAzlYCMrgAwIrme6Sp6r2FOuUCFqbQfmXzl+ vNGn9oOAt98hjnmT+kycmQxQqlMHrH6KBjyNF2tY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22080: fs/ntfs3: Prevent integer overflow in hdr_first_de() Date: Wed, 16 Apr 2025 16:12:51 +0200 Message-ID: <2025041613-CVE-2025-22080-a4ec@gregkh> X-Mailer: git-send-email 2.49.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=2669; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SgQpS2bbI1zS/MNxkfrX+TY4oN/Swx/S3ZX6d20MBOA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d+1lVj005cD++q7LFy8lP/nTu6Vpc8k2nUMGt7VZ+ 4ROei0X6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJuIswzM9gK40o0PJoT9M/ n3f3u+PBl98XyzDMz/P9fm6LldH0er5Dx6V2vTkpM4HhKQA= 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: Prevent integer overflow in hdr_first_de() The "de_off" and "used" variables come from the disk so they both need to check. The problem is that on 32bit systems if they're both greater than UINT_MAX - 16 then the check does work as intended because of an integer overflow. The Linux kernel CVE team has assigned CVE-2025-22080 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 60ce8dfde03558bfc290cd915c60fa243ba2ae84 and fixed in 6.6.87 with commit f6d44b1aa46d317e52c21fb9314cfb20dd69e7b0 Issue introduced in 6.2 with commit 60ce8dfde03558bfc290cd915c60fa243ba2ae84 and fixed in 6.12.23 with commit 201a2bdda13b619c4927700ffe47d387a30ced50 Issue introduced in 6.2 with commit 60ce8dfde03558bfc290cd915c60fa243ba2ae84 and fixed in 6.13.11 with commit 85615aa442830027923fc690390fa74d17b36ae1 Issue introduced in 6.2 with commit 60ce8dfde03558bfc290cd915c60fa243ba2ae84 and fixed in 6.14.2 with commit b9982065b82b4177ba3a7a72ce18c84921f7494d Issue introduced in 6.2 with commit 60ce8dfde03558bfc290cd915c60fa243ba2ae84 and fixed in 6.15-rc1 with commit 6bb81b94f7a9cba6bde9a905cef52a65317a8b04 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-22080 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/ntfs.h 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/f6d44b1aa46d317e52c21fb9314cfb20dd69e7b0 https://git.kernel.org/stable/c/201a2bdda13b619c4927700ffe47d387a30ced50 https://git.kernel.org/stable/c/85615aa442830027923fc690390fa74d17b36ae1 https://git.kernel.org/stable/c/b9982065b82b4177ba3a7a72ce18c84921f7494d https://git.kernel.org/stable/c/6bb81b94f7a9cba6bde9a905cef52a65317a8b04