{"id":"CVE-2025-38330","state":"PUBLISHED","title":"firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)\n\nKASAN reported out of bounds access - cs_dsp_ctl_cache_init_multiple_offsets().\nThe code uses mock_coeff_template.length_bytes (4 bytes) for register value\nallocations. But later, this length is set to 8 bytes which causes\ntest code failures.\n\nAs fix, just remove the lenght override, keeping the original value 4\nfor all operations.","publishedAt":"2025-07-10T08:15:03.579Z","updatedAt":"2026-05-11T21:25:54.058Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9b33a4fc500cedc1adc9c0ee01e30ffd50e5887a","status":"affected","lessThan":"e3dafc64b90546eb769f33333afabd9e3e915757","versionType":"git"},{"version":"9b33a4fc500cedc1adc9c0ee01e30ffd50e5887a","status":"affected","lessThan":"f4ba2ea57da51d616b689c4b8826c517ff5a8523","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c"]}],"references":["https://git.kernel.org/stable/c/e3dafc64b90546eb769f33333afabd9e3e915757","https://git.kernel.org/stable/c/f4ba2ea57da51d616b689c4b8826c517ff5a8523"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38330.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38330","state":"PUBLISHED","datePublished":"2025-07-10T08:15:03.579Z","dateUpdated":"2026-05-11T21:25:54.058Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.004Z"},"containers":{"cna":{"title":"firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)\n\nKASAN reported out of bounds access - cs_dsp_ctl_cache_init_multiple_offsets().\nThe code uses mock_coeff_template.length_bytes (4 bytes) for register value\nallocations. But later, this length is set to 8 bytes which causes\ntest code failures.\n\nAs fix, just remove the lenght override, keeping the original value 4\nfor all operations."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9b33a4fc500cedc1adc9c0ee01e30ffd50e5887a","status":"affected","lessThan":"e3dafc64b90546eb769f33333afabd9e3e915757","versionType":"git"},{"version":"9b33a4fc500cedc1adc9c0ee01e30ffd50e5887a","status":"affected","lessThan":"f4ba2ea57da51d616b689c4b8826c517ff5a8523","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e3dafc64b90546eb769f33333afabd9e3e915757"},{"url":"https://git.kernel.org/stable/c/f4ba2ea57da51d616b689c4b8826c517ff5a8523"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:25:54.058Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.15.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}