{
  "id": "CVE-2025-39935",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39935",
  "published_at": "2025-10-04T07:30:59.102Z",
  "title": "ASoC: codec: sma1307: Fix memory corruption in sma1307_setting_loaded()",
  "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: codec: sma1307: Fix memory corruption in sma1307_setting_loaded()\n\nThe sma1307-\u003eset.header_size is how many integers are in the header\n(there are 8 of them) but instead of allocating space of 8 integers\nwe allocate 8 bytes.  This leads to memory corruption when we copy data\nit on the next line:\n\n        memcpy(sma1307-\u003eset.header, data,\n               sma1307-\u003eset.header_size * sizeof(int));\n\nAlso since we're immediately copying over the memory in -\u003eset.header,\nthere is no need to zero it in the allocator.  Use devm_kmalloc_array()\nto allocate the memory instead.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, \u003c cd59ca8f75dbb42a67fcae975c766114644e36c4",
          "\u003e= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, \u003c 78338108b5a856dc98223a335f147846a8a18c51"
        ],
        "fixed_in": [
          "cd59ca8f75dbb42a67fcae975c766114644e36c4",
          "78338108b5a856dc98223a335f147846a8a18c51"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.13"
        ],
        "fixed_in": [
          "0",
          "6.16.9",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to cd59ca8f75dbb42a67fcae975c766114644e36c4 or 78338108b5a856dc98223a335f147846a8a18c51 or later.",
      "Upgrade Linux to 0 or 6.16.9 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
