Null Pointer Dereference in Linux Kernel's mtk-pmic-keys Package

linux Updated 02 Oct 2025

Summary

20/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-37972: 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 devic... Affects linux versions < 6.1.140-1. Fixed in 6.1.140-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. The mtk-pmic-keys module is responsible for handling power management integrated circuit (PMIC) key inputs. This module is crucial for devices that rely on button inputs for user interaction. However, it has been identified that under certain conditions, the module can lead to a null pointer dereference, potentially causing system instability.

Vulnerability Detail

The vulnerability arises in the mtk_pmic_keys_probe function, where the 'regs' parameter is only initialized if the button is defined in the device tree. On hardware configurations where the button input is not present, the absence of this node leads to a null pointer dereference when the code attempts to access it. This can result in a system crash or unexpected behavior, compromising the reliability of the device.

How To Fix

Minimum fixed version

6.1.140-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can ensure that the device tree includes the necessary button definitions, or modify the code to check for null pointers before dereferencing them. However, the best solution is to apply the patch provided in the updated kernel version.

Conclusion

The identified null pointer dereference vulnerability in the mtk-pmic-keys module of the Linux kernel poses a significant risk to system stability. Users are strongly advised to update their kernel to the latest version to mitigate this issue. Utilizing tools like Vulert can further enhance security by providing real-time monitoring of vulnerabilities.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

A null pointer dereference occurs when a program attempts to access memory that has not been allocated, leading to crashes or undefined behavior.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.

Failing to address this vulnerability can lead to system crashes, data loss, and potential exploitation by malicious actors.

Yes, users should upgrade to the latest version of the Linux kernel provided by their distribution to ensure that this vulnerability is patched.

Yes, Vulert allows you to monitor and receive alerts for open-source vulnerabilities in your software using just a manifest file, making it easy to stay informed.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.1.140-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback