{"id":"CVE-2025-39935","published":"2025-10-04T07:30:59Z","modified":"2026-08-05T12:06:13Z","title":"ASoC: codec: sma1307: Fix memory corruption in sma1307_setting_loaded()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: codec: sma1307: Fix memory corruption in sma1307_setting_loaded()\n\nThe sma1307->set.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->set.header, data,\n               sma1307->set.header_size * sizeof(int));\n\nAlso since we're immediately copying over the memory in ->set.header,\nthere is no need to zero it in the allocator.  Use devm_kmalloc_array()\nto allocate the memory instead.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00224,"percentile":0.07671,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/cd59ca8f75dbb42a67fcae975c766114644e36c4","tags":[]},{"url":"https://git.kernel.org/stable/c/78338108b5a856dc98223a335f147846a8a18c51","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":1.53},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < cd59ca8f75dbb42a67fcae975c766114644e36c4",">= 576c57e6b4c1d734bcb7cc33dde9a99a9383b520, < 78338108b5a856dc98223a335f147846a8a18c51"]},{"vendor":"Linux","product":"Linux","versions":["6.13"]}],"euvd":{"id":"EUVD-2025-32404","exploited":false,"provenance":"source"}}