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 15DEC21ADB0 for ; Wed, 26 Feb 2025 02:15:55 +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=1740536155; cv=none; b=YlDdytaBEepF0NG7FyQh+XU2SA6GShC8bu/JNx+4hfp92aE32p93E84jtTk2WKUvtoqOA5MoGsHlWqElRJeiXtWTH81+VIGLgCTJc9D4o/HHwEbGstlJDa3jE/8QsMXnJLdViqGphOqkTKWLMR7uGEOotjKZ/EpoVf5SfJstrDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536155; c=relaxed/simple; bh=yT28q0DAKHJmi3RP2x9y0GC8EJj0K99DMSBy/8Y8j9g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gT4AKy+OGQZMGBytt/hVBPU1PljmoziIxG2HrKSeLln9y6MSRRLsZt5sXtQMMOIoTXPDnVcRpuxPCJlnLnAXVcWRyAYCbrdXfd/2X+48Yw7F825oyilNqQaC5okkdq+l6aM+mxnJeuPoveO6cs7M3kQUy/AekF1KjDIsPL+SU4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cERsppgV; 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="cERsppgV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAF1BC4CEDD; Wed, 26 Feb 2025 02:15:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536155; bh=yT28q0DAKHJmi3RP2x9y0GC8EJj0K99DMSBy/8Y8j9g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cERsppgVw8xIl6EMSjri5/+zwO8J2JgRLzznBxCPJc1T15Vfl8O4R30vX3iixtlZe +Q3dUDmjd8sM/m/ybONswJO/oJWNIEy3NIxuAplLP7nbyGpUM/FH0MgVG4N6/Q27VG TWCDjv8MQhjfwM0KZfyXpp2UBVRFadqts/aBvEOU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49553: fs/ntfs3: validate BOOT sectors_per_clusters Date: Wed, 26 Feb 2025 03:13:47 +0100 Message-ID: <2025022616-CVE-2022-49553-4466@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=2639; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yT28q0DAKHJmi3RP2x9y0GC8EJj0K99DMSBy/8Y8j9g=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Kji+GP2vTXezer/LLfbqy/OuE78rxNedq3zGd9p/n r2fItufjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjISw+Geepa7Bu3ujzT1vGc 9Ctxn1xWfdMcZ4b5xStU5ULa09f2Xfp3QfXepq4mJo8IAA== 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: validate BOOT sectors_per_clusters When the NTFS BOOT sectors_per_clusters field is > 0x80, it represents a shift value. Make sure that the shift value is not too large before using it (NTFS max cluster size is 2MB). Return -EVINVAL if it too large. This prevents negative shift values and shift values that are larger than the field size. Prevents this UBSAN error: UBSAN: shift-out-of-bounds in ../fs/ntfs3/super.c:673:16 shift exponent -192 is negative The Linux kernel CVE team has assigned CVE-2022-49553 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.15.45 with commit 58cf68a1886d14ffdc5c892ce483a82156769e88 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.17.13 with commit 4746c49b11b2403f5b5b07c6eac9e60663dcd9a3 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.18.2 with commit a2b6986316a2d106f6951e76db70fa4b2fde64a9 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.19 with commit a3b774342fa752a5290c0de36375289dfcf4a260 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-49553 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/58cf68a1886d14ffdc5c892ce483a82156769e88 https://git.kernel.org/stable/c/4746c49b11b2403f5b5b07c6eac9e60663dcd9a3 https://git.kernel.org/stable/c/a2b6986316a2d106f6951e76db70fa4b2fde64a9 https://git.kernel.org/stable/c/a3b774342fa752a5290c0de36375289dfcf4a260