CVE-2025-22044 acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

High 7.1 Published Updated

A narrowing conversion flaw in the Linux kernel's ACPI NFIT driver allows invalid input to bypass checks, potentially causing undefined behavior or system instability.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-22044?

CVE-2025-22044 is a high-severity vulnerability in Linux kernel, published on 16 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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]

Weakness: CWE-704

Which versions are affected by CVE-2025-22044?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-22044?

Apply the vendor's patch.

Is CVE-2025-22044 being exploited?

There is no known exploitation of CVE-2025-22044 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-22044, DEBIAN-CVE-2025-22044, GHSA-65j3-jrj3-4mgp, ROOT-OS-UBUNTU-2404-CVE-2025-22044, UBUNTU-CVE-2025-22044.

Is CVE-2025-22044 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free