{
  "id": "CVE-2026-31475",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31475",
  "published_at": "2026-04-22T13:54:04.113Z",
  "title": "ASoC: sma1307: fix double free of devm_kzalloc() memory",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "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: sma1307: fix double free of devm_kzalloc() memory\n\nA previous change added NULL checks and cleanup for allocation\nfailures in sma1307_setting_loaded().\n\nHowever, the cleanup for mode_set entries is wrong. Those entries are\nallocated with devm_kzalloc(), so they are device-managed resources and\nmust not be freed with kfree(). Manually freeing them in the error path\ncan lead to a double free when devres later releases the same memory.\n\nDrop the manual kfree() loop and let devres handle the cleanup.",
  "cwe": "CWE-415",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 0ec6bd16705fe21d6429d6b8f7981eae2142bba8, \u003c d472d1a52985211b92883bb64bbe710b45980190",
          "\u003e= 0ec6bd16705fe21d6429d6b8f7981eae2142bba8, \u003c 1a82c3272626db9006f4c2cad3adf2916417aed6",
          "\u003e= 0ec6bd16705fe21d6429d6b8f7981eae2142bba8, \u003c fe757092d2329c397ecb32f2bf68a5b1c4bd9193",
          "f8434b8ba437d3f6cbcd9ffe8405bd16ed28fc5c",
          "\u003e= 6.14.9, \u003c 6.15"
        ],
        "fixed_in": [
          "d472d1a52985211b92883bb64bbe710b45980190",
          "1a82c3272626db9006f4c2cad3adf2916417aed6",
          "fe757092d2329c397ecb32f2bf68a5b1c4bd9193",
          "6.15"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.15"
        ],
        "fixed_in": [
          "0",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to d472d1a52985211b92883bb64bbe710b45980190 or 1a82c3272626db9006f4c2cad3adf2916417aed6 or fe757092d2329c397ecb32f2bf68a5b1c4bd9193 or 6.15 or later.",
      "Upgrade Linux to 0 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
