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 DD5931FE44C for ; Wed, 16 Apr 2025 14:14: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=1744812868; cv=none; b=MzSaHqAJFgotWCW9TfgvdsvnKGxjp4RfY3A3NPKm4wuXUfRwDl5I1V7OyVgCHPVIm/b6xEdIwZql5iTaubByDlTPFrBH3aqEqNPy+Yzz+VZ2/8tvP2n5vaCEVMhP2fmyJnvrIsVU+IuVLKf8s2pppUNGv18X6qUDo9ad8YU4SNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812868; c=relaxed/simple; bh=dd4kti893Y6CVNHsv2IykaFiL99K/bmvLBhqq9j6iQE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=opMh900Rq2woQNtsHp0ly4C4ZUDyAuE3TJB6eTCRBN8vOGn6fIhwh49KuCWlA3DjMHeBy+cyKIujCpK1BqmhrJC6IVD8nLb8j0hGblsiDoZ+6RehkgQzxwRq9by9Pxk3AvVe8ItcQ4BXiX2+J0/ACFkjFT4SPS1JDnROsdajWEQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2cqZtW+L; 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="2cqZtW+L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A10DC4CEE2; Wed, 16 Apr 2025 14:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812868; bh=dd4kti893Y6CVNHsv2IykaFiL99K/bmvLBhqq9j6iQE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2cqZtW+L2qIwv7Y4bNxkOhgpEGjuqwMS/uIsGKmg0EwM4U3uOKuR3aVyU5/KPz3+s toOqV3inGDkCuzRcZ433p1hHLGMo5Q+QuWSdDA0hpILFo20wcpascCQLpEbpbKOq9q J/fRMgcyahttEqBjVQ97ztNvrxFFgTKcn1dNm/QQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22044: acpi: nfit: fix narrowing conversion in acpi_nfit_ctl Date: Wed, 16 Apr 2025 16:12:15 +0200 Message-ID: <2025041601-CVE-2025-22044-3d5e@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=3999; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dd4kti893Y6CVNHsv2IykaFiL99K/bmvLBhqq9j6iQE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d23M/e1u1+xq1zeh9rTUn9LpDXc0G3ar75YzZk9kv ZM70f5MRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzE8TnDfL+TT7iUMlL4PD+m fpEunvb+/fPNNxkWLJ/T1bl85k+beS83qIUxdTTkruwLBAA= 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: acpi: nfit: fix narrowing conversion in acpi_nfit_ctl Syzkaller has reported a warning in to_nfit_bus_uuid(): "only secondary bus families can be translated". This warning is emited if the argument is equal to NVDIMM_BUS_FAMILY_NFIT == 0. Function acpi_nfit_ctl() first verifies that a user-provided value call_pkg->nd_family of type u64 is not equal to 0. Then the value is converted to int, and only after that is compared to NVDIMM_BUS_FAMILY_MAX. This can lead to passing an invalid argument to acpi_nfit_ctl(), if call_pkg->nd_family is non-zero, while the lower 32 bits are zero. Furthermore, it is best to return EINVAL immediately upon seeing the invalid user input. The WARNING is insufficient to prevent further undefined behavior based on other invalid user input. All checks of the input value should be applied to the original variable call_pkg->nd_family. [iweiny: update commit message] The Linux kernel CVE team has assigned CVE-2025-22044 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 5.10.236 with commit 4b65cff06a004ac54f6ea8886060f0d07b1ca055 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 5.15.180 with commit 92ba06aef65522483784dcbd6697629ddbd4c4f9 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 6.1.134 with commit bae5b55e0f327102e78f6a66fb127275e9bc91b6 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 6.6.87 with commit c90402d2a226ff7afbe1d0650bee8ecc15a91049 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 6.12.23 with commit e71a57c5aaa389d4c3c82f920761262efdd18d38 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 6.13.11 with commit 73851cfceb00cc77d7a0851bc10f2263394c3e87 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 6.14.2 with commit 85f11291658ab907c4294319c8102450cc75bb96 Issue introduced in 5.9 with commit 6450ddbd5d8e83ea9927c7f9076a21f829699e0f and fixed in 6.15-rc1 with commit 2ff0e408db36c21ed3fa5e3c1e0e687c82cf132f 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-22044 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: drivers/acpi/nfit/core.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/4b65cff06a004ac54f6ea8886060f0d07b1ca055 https://git.kernel.org/stable/c/92ba06aef65522483784dcbd6697629ddbd4c4f9 https://git.kernel.org/stable/c/bae5b55e0f327102e78f6a66fb127275e9bc91b6 https://git.kernel.org/stable/c/c90402d2a226ff7afbe1d0650bee8ecc15a91049 https://git.kernel.org/stable/c/e71a57c5aaa389d4c3c82f920761262efdd18d38 https://git.kernel.org/stable/c/73851cfceb00cc77d7a0851bc10f2263394c3e87 https://git.kernel.org/stable/c/85f11291658ab907c4294319c8102450cc75bb96 https://git.kernel.org/stable/c/2ff0e408db36c21ed3fa5e3c1e0e687c82cf132f