{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-37850",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-37850",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-05-09T06:41:57.784Z",
    "updatedAt": "2026-05-11T21:16:19.020Z",
    "importedAt": "2026-10-24T01:57:34.152Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\npwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()\n\nWith CONFIG_COMPILE_TEST && !CONFIG_HAVE_CLK, pwm_mediatek_config() has a\ndivide-by-zero in the following line:\n\n\tdo_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm]));\n\ndue to the fact that the !CONFIG_HAVE_CLK version of clk_get_rate()\nreturns zero.\n\nThis is presumably just a theoretical problem: COMPILE_TEST overrides\nthe dependency on RALINK which would select COMMON_CLK.  Regardless it's\na good idea to check for the error explicitly to avoid divide-by-zero.\n\nFixes the following warning:\n\n  drivers/pwm/pwm-mediatek.o: warning: objtool: .text: unexpected end of section\n\n[ukleinek: s/CONFIG_CLK/CONFIG_HAVE_CLK/]",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8b9f60725d74b72c238e4437c957d0217746b506"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e1206d8e1651c9f62e5640b69b14d925b1a0a00a"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e3cf0c38d3ce754ad63005102fcfeb0b7ff3290b"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f3e9cf266c2c103cf071e15d7a17e2c699fff3c5"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8ddbec73ea2598d8414e8f7103241b55cf877010"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4cb15042b5f3ec0474e91cf379120cc597625dbb"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c343856ff2689ce0afef823592732fc178ef4aac"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "77fb96dbe350e8a5ae4965ff9f6e7049f3966a6b"
            },
            {
              "version": "caf065f8fd583b43a3f95d84c8a0a0d07597963b",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7ca59947b5fcf94e7ea4029d1bd0f7c41500a161"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.12",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.12"
            },
            {
              "version": "5.4.293",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.237",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.181",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.135",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.88",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.24",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.13.12",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.13.*"
            },
            {
              "version": "6.14.3",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.14.*"
            },
            {
              "version": "6.15",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}