From mboxrd@z Thu Jan 1 00:00:00 1970 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 8EF7214EC73 for ; Wed, 26 Feb 2025 01:59:29 +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=1740535169; cv=none; b=bbhEXEroTVCNcga3Wyw/vS+6VQ29FpTuxbEJFkUndV4UDV6r5ArKTJ4DCMjy4RoPD5jwUk8Rg9X9vcG4bBd7z5L5buETyz8/0kkLzQo/ny3xFLZfyyeCVAbm5c6yZDrolbP6tSVTBlXo5zb7RRPvbfMp92Kqop92zPDlHDC3lnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535169; c=relaxed/simple; bh=E7/oYBsHHrvlrcM18L6fBHn8vOmWydWJBX6Tvat6eOQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sBfOXk9ok/UrJ0tHpkYEHXF0ozoadoCzp9Vx+9Kv0Ofv8zaLLjqQvLw7Kj8jlsRTdQu4JtSNf9fGme+vZSUtSBnSybWYCeqJEVXSMuBzXBrPGul8wK9EqDpLfBOsS8Rb7ahYe9szDH77hzpKXgQp7UUgBebgrWQeTD+AP2flOAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qfJIV2LB; 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="qfJIV2LB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61DEEC4CEDD; Wed, 26 Feb 2025 01:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535169; bh=E7/oYBsHHrvlrcM18L6fBHn8vOmWydWJBX6Tvat6eOQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qfJIV2LBVljeYg+ACOFlVXayfQxlHBLNelsd5jP5OsHrnEWbnDs8AQZlri9ffp/SU 5BKqC8s+gvI33UBhpiB8FEE50/tHh7k/j04CIiy7eCXYmIn72gO+u0TynfwvTJVeRF YFbCwVq7VIHQeJCf2ZN9mBLHQvlKGT2TR3nW68rE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49166: ntfs: add sanity check on allocation size Date: Wed, 26 Feb 2025 02:56:11 +0100 Message-ID: <2025022611-CVE-2022-49166-7308@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=2792; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=E7/oYBsHHrvlrcM18L6fBHn8vOmWydWJBX6Tvat6eOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SpwnLE27sHzqtou/9h4/IrrlezdTx4knd6SuLq1yO 9X33C/MriOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmkqLKsKBvb+PPqYw5U2fv kziWwbhFMuJG53yGeaod/801LVM9zs8TPbD56sMe5gAfUQA= 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: ntfs: add sanity check on allocation size ntfs_read_inode_mount invokes ntfs_malloc_nofs with zero allocation size. It triggers one BUG in the __ntfs_malloc function. Fix this by adding sanity check on ni->attr_list_size. The Linux kernel CVE team has assigned CVE-2022-49166 to this issue. Affected and fixed versions =========================== Fixed in 4.9.311 with commit bd8d7daa0e53b184a2f3c6e0d47330780d0a0650 Fixed in 4.14.276 with commit 21d490232f323ed4053eb9924615e6fea291f154 Fixed in 4.19.238 with commit 07793d2e55563124108762f4e5f811db92ffe02f Fixed in 5.4.189 with commit fe41ad8be036a3de3e4bdde709551aeb4de2fe7d Fixed in 5.10.110 with commit b230f2d9441a34c7f483d39ab78519bcf73cc2e0 Fixed in 5.15.33 with commit 24ab2d4ef52c2dbb62a60844b87fc8872383407a Fixed in 5.16.19 with commit 115fae2c1566eacc5ad2055f72521354612e72c3 Fixed in 5.17.2 with commit c641087d381a08363e5f14179bc6b0a23eca7c47 Fixed in 5.18 with commit 714fbf2647b1a33d914edd695d4da92029c7e7c0 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-49166 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/ntfs/inode.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/bd8d7daa0e53b184a2f3c6e0d47330780d0a0650 https://git.kernel.org/stable/c/21d490232f323ed4053eb9924615e6fea291f154 https://git.kernel.org/stable/c/07793d2e55563124108762f4e5f811db92ffe02f https://git.kernel.org/stable/c/fe41ad8be036a3de3e4bdde709551aeb4de2fe7d https://git.kernel.org/stable/c/b230f2d9441a34c7f483d39ab78519bcf73cc2e0 https://git.kernel.org/stable/c/24ab2d4ef52c2dbb62a60844b87fc8872383407a https://git.kernel.org/stable/c/115fae2c1566eacc5ad2055f72521354612e72c3 https://git.kernel.org/stable/c/c641087d381a08363e5f14179bc6b0a23eca7c47 https://git.kernel.org/stable/c/714fbf2647b1a33d914edd695d4da92029c7e7c0