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 424B819477 for ; Tue, 2 Apr 2024 06:22:28 +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=1712038949; cv=none; b=bJ6I/mSxA/XZeYYQdFHTif/4qxOLQND6PQaVDViDBCk7DmGKoI4MVWVCtKinEYcB8mx523V64PtK1z53J+gZMQEg5Q++1U2w9ZB6JwkVKZfgv4x3FtY3SI68VoZE2vm5TcxUvi+B9VVxsKhq+41BFms3mMR1bqvBqXe+/sDCuQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712038949; c=relaxed/simple; bh=WHR8kFbupkI7m+WQ4Upw6GX/OwueYXC19fp5smMegB0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vw0lSPp8phgFS3JhDGaLt7g1gH0gvUyBgu/W3B6cHoP6r43BTR8+taiSFsOEmKhsPbb2syWHqdWuJRYMaDbJ+t9fBWcHmVdbpCc7kNDIE0h+l+AZT3Guo/mALEwCS385ExTtlPP0yuUzV3Kgs4uzSy9ddtQSpmWnY0VIaSzNtzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AKp3Uc/V; 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="AKp3Uc/V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B2D3C433C7; Tue, 2 Apr 2024 06:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712038948; bh=WHR8kFbupkI7m+WQ4Upw6GX/OwueYXC19fp5smMegB0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AKp3Uc/V1uAiR3oVHZVJeZZLeti4UbSp9BKB6AmxhTbT+jsma79zR+j+itNOOMejZ TgD1kvJBwn4hXO9ii7AqNLZ6nVZcQdu9HijYjrg3EfrzNk7c0cFzr54ci4EuTv6IN/ maNCCXkpr38QVI6YzuyOKQkMt/TXKwETiZHIk4cw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52631: fs/ntfs3: Fix an NULL dereference bug Date: Tue, 2 Apr 2024 08:22:21 +0200 Message-ID: <2024040222-CVE-2023-52631-ea7b@gregkh> X-Mailer: git-send-email 2.44.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=2517; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WHR8kFbupkI7m+WQ4Upw6GX/OwueYXC19fp5smMegB0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGncS+SuVwjUbg659GPOvmWGlp+6kk0Zzfp+LhA2tO2fx XQm7fiNjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIbX+GeTqnF39Qn2fnFnFr ocWZ2jXTWxZNOcuwYJb0TQ/u3ywXgg2N92z7q33l8/lyRQA= 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: Fix an NULL dereference bug The issue here is when this is called from ntfs_load_attr_list(). The "size" comes from le32_to_cpu(attr->res.data_size) so it can't overflow on a 64bit systems but on 32bit systems the "+ 1023" can overflow and the result is zero. This means that the kmalloc will succeed by returning the ZERO_SIZE_PTR and then the memcpy() will crash with an Oops on the next line. The Linux kernel CVE team has assigned CVE-2023-52631 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit be71b5cba2e6 and fixed in 5.15.149 with commit ae4acad41b0f Issue introduced in 5.15 with commit be71b5cba2e6 and fixed in 6.1.78 with commit ec1bedd79758 Issue introduced in 5.15 with commit be71b5cba2e6 and fixed in 6.6.17 with commit fb7bcd1722bc Issue introduced in 5.15 with commit be71b5cba2e6 and fixed in 6.7.5 with commit 686820fe141e Issue introduced in 5.15 with commit be71b5cba2e6 and fixed in 6.8 with commit b2dd7b953c25 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-2023-52631 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_fs.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/ae4acad41b0f93f1c26cc0fc9135bb79d8282d0b https://git.kernel.org/stable/c/ec1bedd797588fe38fc11cba26d77bb1d9b194c6 https://git.kernel.org/stable/c/fb7bcd1722bc9bc55160378f5f99c01198fd14a7 https://git.kernel.org/stable/c/686820fe141ea0220fc6fdfc7e5694f915cf64b2 https://git.kernel.org/stable/c/b2dd7b953c25ffd5912dda17e980e7168bebcf6c