In the Linux kernel, the following vulnerability has been resolved:
Input: mtk-pmic-keys - fix possible null pointer dereference
In mtkpmickeys_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.
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@90fa6015ff83ef1c373cc61b7c924ab2bcbe1801",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "mtk_pmic_keys_lp_reset_setup",
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-1f11090d",
"digest": {
"length": 861.0,
"function_hash": "192742826435353405593376203690080028115"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@334d74a798463ceec02a41eb0e2354aaac0d6249",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-66d30bed",
"digest": {
"threshold": 0.9,
"line_hashes": [
"137291530766465683399811602255087158279",
"122269193558815682812261332193265874601",
"129368624562925744470626173939272239886",
"221941240697364447166700954879177286889",
"233673444433044082060661566557462210182"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@619c05fb176c272ac6cecf723446b39723ee6d97",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "mtk_pmic_keys_lp_reset_setup",
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-6a9b3ddc",
"digest": {
"length": 861.0,
"function_hash": "192742826435353405593376203690080028115"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@11cdb506d0fbf5ac05bf55f5afcb3a215c316490",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-6f78b648",
"digest": {
"threshold": 0.9,
"line_hashes": [
"137291530766465683399811602255087158279",
"122269193558815682812261332193265874601",
"129368624562925744470626173939272239886",
"221941240697364447166700954879177286889",
"233673444433044082060661566557462210182"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@90fa6015ff83ef1c373cc61b7c924ab2bcbe1801",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-7e877659",
"digest": {
"threshold": 0.9,
"line_hashes": [
"137291530766465683399811602255087158279",
"122269193558815682812261332193265874601",
"129368624562925744470626173939272239886",
"221941240697364447166700954879177286889",
"233673444433044082060661566557462210182"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@11cdb506d0fbf5ac05bf55f5afcb3a215c316490",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "mtk_pmic_keys_lp_reset_setup",
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-82d294a6",
"digest": {
"length": 861.0,
"function_hash": "192742826435353405593376203690080028115"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@334d74a798463ceec02a41eb0e2354aaac0d6249",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "mtk_pmic_keys_lp_reset_setup",
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-c0d98bcd",
"digest": {
"length": 861.0,
"function_hash": "192742826435353405593376203690080028115"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@619c05fb176c272ac6cecf723446b39723ee6d97",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-de68bbfa",
"digest": {
"threshold": 0.9,
"line_hashes": [
"137291530766465683399811602255087158279",
"122269193558815682812261332193265874601",
"129368624562925744470626173939272239886",
"221941240697364447166700954879177286889",
"233673444433044082060661566557462210182"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@09429ddb5a91e9e8f72cd18c012ec4171c2f85ec",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "mtk_pmic_keys_lp_reset_setup",
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-f1519fb5",
"digest": {
"length": 861.0,
"function_hash": "192742826435353405593376203690080028115"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@09429ddb5a91e9e8f72cd18c012ec4171c2f85ec",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/input/keyboard/mtk-pmic-keys.c"
},
"id": "CVE-2025-37972-f4bb4905",
"digest": {
"threshold": 0.9,
"line_hashes": [
"137291530766465683399811602255087158279",
"122269193558815682812261332193265874601",
"129368624562925744470626173939272239886",
"221941240697364447166700954879177286889",
"233673444433044082060661566557462210182"
]
},
"signature_type": "Line"
}
]