CVE-2025-37972 Input: mtk-pmic-keys - fix possible null pointer dereference
A null pointer dereference in the MediaTek PMIC keys driver can cause a system crash when specific hardware configurations are present.
- 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-37972?
CVE-2025-37972 is a medium-severity vulnerability in Debian Debian Linux, published on 20 May 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:
Input: mtk-pmic-keys - fix possible null pointer dereference
In mtk_pmic_keys_probe, the regs parameter is only set if the button is parsed in the device tree. However, on hardware where the button is left floating, that node will most likely be removed not to enable that input. In that case the code will try to dereference a null pointer.
Let's use the regs struct instead as it is defined for all supported platforms. Note that it is ok setting the key reg even if that latter is disabled as the interrupt won't be enabled anyway.
Weakness: CWE-476
Which versions are affected by CVE-2025-37972?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-37972?
Apply the vendor's patch.
Is CVE-2025-37972 being exploited?
There is no known exploitation of CVE-2025-37972 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2025-37972, DEBIAN-CVE-2025-37972, GHSA-qh3p-3v24-8crj, ROOT-OS-DEBIAN-12-CVE-2025-37972, ROOT-OS-UBUNTU-2404-CVE-2025-37972, UBUNTU-CVE-2025-37972.