CVE-2025-22044
JSON

7.1high

acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

Severity
7.1high CVSS:3.1 by Linux
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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]

Affected

Product or packageVersionsReported by
Linux Linuxfrom 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before 4b65cff06a004ac54f6ea8886060f0d07b1ca055, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before 92ba06aef65522483784dcbd6697629ddbd4c4f9, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before bae5b55e0f327102e78f6a66fb127275e9bc91b6, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before c90402d2a226ff7afbe1d0650bee8ecc15a91049, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before e71a57c5aaa389d4c3c82f920761262efdd18d38, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before 73851cfceb00cc77d7a0851bc10f2263394c3e87, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before 85f11291658ab907c4294319c8102450cc75bb96, from 6450ddbd5d8e83ea9927c7f9076a21f829699e0f before 2ff0e408db36c21ed3fa5e3c1e0e687c82cf132f and 1 more
Not affected: before 5.9, from 5.10.236 up to 5.10.*, from 5.15.180 up to 5.15.*, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.*
CVE List
linux linux_kernelfrom 5.9 before 5.10.236, from 5.11 before 5.15.180, from 5.16 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-704

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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]

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: acpi: nfit: corrección de la conversión de restricción en acpi_nfit_ctl. Syzkaller ha informado de una advertencia en to_nfit_bus_uuid(): "Solo se pueden traducir familias de bus secundarias". Esta advertencia se emite si el argumento es igual a NVDIMM_BUS_FAMILY_NFIT == 0. La función acpi_nfit_ctl() verifica primero que el valor proporcionado por el usuario, call_pkg->nd_family, de tipo u64, no sea igual a 0. A continuación, el valor se convierte a int y solo después se compara con NVDIMM_BUS_FAMILY_MAX. Esto puede provocar que se pase un argumento no válido a acpi_nfit_ctl() si call_pkg->nd_family es distinto de cero, mientras que los 32 bits inferiores son cero. Además, se recomienda devolver EINVAL inmediatamente después de detectar la entrada de usuario no válida. La advertencia no es suficiente para evitar un comportamiento indefinido posterior basado en otra entrada de usuario no válida. Todas las comprobaciones del valor de entrada deben aplicarse a la variable original call_pkg->nd_family. [iweiny: actualizar mensaje de confirmación]

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22044 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-22044 changed 2026-10-15Public domain