CVE-2025-22044

acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

State
Published
Severity
7.1 High
Published
Apr 16, 2025
Updated
Oct 15, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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]

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before 4b65cff06a004ac54f6ea8886060f0d07b1ca055Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before 92ba06aef65522483784dcbd6697629ddbd4c4f9Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before bae5b55e0f327102e78f6a66fb127275e9bc91b6Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before c90402d2a226ff7afbe1d0650bee8ecc15a91049Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before e71a57c5aaa389d4c3c82f920761262efdd18d38Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before 73851cfceb00cc77d7a0851bc10f2263394c3e87Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before 85f11291658ab907c4294319c8102450cc75bb96Affected
  • 6450ddbd5d8e83ea9927c7f9076a21f829699e0f to before 2ff0e408db36c21ed3fa5e3c1e0e687c82cf132fAffected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.10.236 through 5.10.*Not affected
  • 5.15.180 through 5.15.*Not affected
  • 6.1.134 through 6.1.*Not affected
  • 6.6.87 through 6.6.*Not affected
  • 6.12.23 through 6.12.*Not affected
  • 6.13.11 through 6.13.*Not affected
  • 6.14.2 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.