CVE-2025-37972 (GCVE-0-2025-37972)
Vulnerability from cvelistv5
Published
2025-05-20 16:47
Modified
2025-05-26 05:24
Severity ?
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: b581acb49aec5c3b0af9ab1c537fb73481b79069
Version: b581acb49aec5c3b0af9ab1c537fb73481b79069
Version: b581acb49aec5c3b0af9ab1c537fb73481b79069
Version: b581acb49aec5c3b0af9ab1c537fb73481b79069
Version: b581acb49aec5c3b0af9ab1c537fb73481b79069
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/input/keyboard/mtk-pmic-keys.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "334d74a798463ceec02a41eb0e2354aaac0d6249",
              "status": "affected",
              "version": "b581acb49aec5c3b0af9ab1c537fb73481b79069",
              "versionType": "git"
            },
            {
              "lessThan": "90fa6015ff83ef1c373cc61b7c924ab2bcbe1801",
              "status": "affected",
              "version": "b581acb49aec5c3b0af9ab1c537fb73481b79069",
              "versionType": "git"
            },
            {
              "lessThan": "619c05fb176c272ac6cecf723446b39723ee6d97",
              "status": "affected",
              "version": "b581acb49aec5c3b0af9ab1c537fb73481b79069",
              "versionType": "git"
            },
            {
              "lessThan": "09429ddb5a91e9e8f72cd18c012ec4171c2f85ec",
              "status": "affected",
              "version": "b581acb49aec5c3b0af9ab1c537fb73481b79069",
              "versionType": "git"
            },
            {
              "lessThan": "11cdb506d0fbf5ac05bf55f5afcb3a215c316490",
              "status": "affected",
              "version": "b581acb49aec5c3b0af9ab1c537fb73481b79069",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/input/keyboard/mtk-pmic-keys.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.0"
            },
            {
              "lessThan": "6.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.139",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.91",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.29",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.14.*",
              "status": "unaffected",
              "version": "6.14.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.15",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.139",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.91",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.29",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14.7",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.15",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nInput: mtk-pmic-keys - fix possible null pointer dereference\n\nIn mtk_pmic_keys_probe, the regs parameter is only set if the button is\nparsed in the device tree. However, on hardware where the button is left\nfloating, that node will most likely be removed not to enable that\ninput. In that case the code will try to dereference a null pointer.\n\nLet\u0027s use the regs struct instead as it is defined for all supported\nplatforms. Note that it is ok setting the key reg even if that latter is\ndisabled as the interrupt won\u0027t be enabled anyway."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-26T05:24:51.997Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/334d74a798463ceec02a41eb0e2354aaac0d6249"
        },
        {
          "url": "https://git.kernel.org/stable/c/90fa6015ff83ef1c373cc61b7c924ab2bcbe1801"
        },
        {
          "url": "https://git.kernel.org/stable/c/619c05fb176c272ac6cecf723446b39723ee6d97"
        },
        {
          "url": "https://git.kernel.org/stable/c/09429ddb5a91e9e8f72cd18c012ec4171c2f85ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/11cdb506d0fbf5ac05bf55f5afcb3a215c316490"
        }
      ],
      "title": "Input: mtk-pmic-keys - fix possible null pointer dereference",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-37972",
    "datePublished": "2025-05-20T16:47:18.481Z",
    "dateReserved": "2025-04-16T04:51:23.975Z",
    "dateUpdated": "2025-05-26T05:24:51.997Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-37972\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-05-20T17:15:47.743\",\"lastModified\":\"2025-05-21T20:24:58.133\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nInput: mtk-pmic-keys - fix possible null pointer dereference\\n\\nIn mtk_pmic_keys_probe, the regs parameter is only set if the button is\\nparsed in the device tree. However, on hardware where the button is left\\nfloating, that node will most likely be removed not to enable that\\ninput. In that case the code will try to dereference a null pointer.\\n\\nLet\u0027s use the regs struct instead as it is defined for all supported\\nplatforms. Note that it is ok setting the key reg even if that latter is\\ndisabled as the interrupt won\u0027t be enabled anyway.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Entrada: mtk-pmic-keys - correcci\u00f3n de posible desreferencia de puntero nulo. En mtk_pmic_keys_probe, el par\u00e1metro regs solo se establece si el bot\u00f3n se analiza en el \u00e1rbol de dispositivos. Sin embargo, en hardware donde el bot\u00f3n se deja flotante, es muy probable que se elimine ese nodo para no habilitar esa entrada. En ese caso, el c\u00f3digo intentar\u00e1 desreferenciar un puntero nulo. En su lugar, usemos la estructura regs, tal como est\u00e1 definida para todas las plataformas compatibles. Tenga en cuenta que es posible establecer el registro de clave incluso si este \u00faltimo est\u00e1 deshabilitado, ya que la interrupci\u00f3n no se habilitar\u00e1 de todos modos.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/09429ddb5a91e9e8f72cd18c012ec4171c2f85ec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/11cdb506d0fbf5ac05bf55f5afcb3a215c316490\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/334d74a798463ceec02a41eb0e2354aaac0d6249\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/619c05fb176c272ac6cecf723446b39723ee6d97\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/90fa6015ff83ef1c373cc61b7c924ab2bcbe1801\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…