{
  "id": "CVE-2025-38259",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38259",
  "published_at": "2025-07-09T10:42:35.602Z",
  "title": "ASoC: codecs: wcd9335: Fix missing free of regulator supplies",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: codecs: wcd9335: Fix missing free of regulator supplies\n\nDriver gets and enables all regulator supplies in probe path\n(wcd9335_parse_dt() and wcd9335_power_on_reset()), but does not cleanup\nin final error paths and in unbind (missing remove() callback).  This\nleads to leaked memory and unbalanced regulator enable count during\nprobe errors or unbind.\n\nFix this by converting entire code into devm_regulator_bulk_get_enable()\nwhich also greatly simplifies the code.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 20aedafdf4926e7a957f8b302a18c8fb75c7e332, \u003c edadaf4239c14dc8a19ea7f60b97d5524d93c29b",
          "\u003e= 20aedafdf4926e7a957f8b302a18c8fb75c7e332, \u003c 9830ef1803a5bc50b4a984a06cf23142cd46229d",
          "\u003e= 20aedafdf4926e7a957f8b302a18c8fb75c7e332, \u003c a8795f3cd289cd958f6396a1b43ba46fa8e22a2e",
          "\u003e= 20aedafdf4926e7a957f8b302a18c8fb75c7e332, \u003c b86280aaa23c1c0f31bcaa600d35ddc45bc38b7a",
          "\u003e= 20aedafdf4926e7a957f8b302a18c8fb75c7e332, \u003c 9079db287fc3e38e040b0edeb0a25770bb679c8e"
        ],
        "fixed_in": [
          "edadaf4239c14dc8a19ea7f60b97d5524d93c29b",
          "9830ef1803a5bc50b4a984a06cf23142cd46229d",
          "a8795f3cd289cd958f6396a1b43ba46fa8e22a2e",
          "b86280aaa23c1c0f31bcaa600d35ddc45bc38b7a",
          "9079db287fc3e38e040b0edeb0a25770bb679c8e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.1"
        ],
        "fixed_in": [
          "0",
          "6.1.143",
          "6.6.96",
          "6.12.36",
          "6.15.5",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to edadaf4239c14dc8a19ea7f60b97d5524d93c29b or 9830ef1803a5bc50b4a984a06cf23142cd46229d or a8795f3cd289cd958f6396a1b43ba46fa8e22a2e or b86280aaa23c1c0f31bcaa600d35ddc45bc38b7a or 9079db287fc3e38e040b0edeb0a25770bb679c8e or later.",
      "Upgrade Linux to 0 or 6.1.143 or 6.6.96 or 6.12.36 or 6.15.5 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
