{"id":"CVE-2025-38340","state":"PUBLISHED","title":"firmware: cs_dsp: Fix OOB memory read access in KUnit test","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: cs_dsp: Fix OOB memory read access in KUnit test\n\nKASAN reported out of bounds access - cs_dsp_mock_bin_add_name_or_info(),\nbecause the source string length was rounded up to the allocation size.","publishedAt":"2025-07-10T08:15:10.285Z","updatedAt":"2026-05-11T21:26:06.115Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c052c6615297ff32032105130cd5f02059f7ae4","status":"affected","lessThan":"8f4cc454a0bb45b800bc7817c09c8f72e31901f3","versionType":"git"},{"version":"7c052c6615297ff32032105130cd5f02059f7ae4","status":"affected","lessThan":"fe6446215bfad11cf3b446f38b28dc7708973c25","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firmware/cirrus/test/cs_dsp_mock_bin.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_mock_bin.c"]}],"references":["https://git.kernel.org/stable/c/8f4cc454a0bb45b800bc7817c09c8f72e31901f3","https://git.kernel.org/stable/c/fe6446215bfad11cf3b446f38b28dc7708973c25"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38340.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38340","state":"PUBLISHED","datePublished":"2025-07-10T08:15:10.285Z","dateUpdated":"2026-05-11T21:26:06.115Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.005Z"},"containers":{"cna":{"title":"firmware: cs_dsp: Fix OOB memory read access in KUnit test","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\n\nKASAN reported out of bounds access - cs_dsp_mock_bin_add_name_or_info(),\nbecause the source string length was rounded up to the allocation size."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7c052c6615297ff32032105130cd5f02059f7ae4","status":"affected","lessThan":"8f4cc454a0bb45b800bc7817c09c8f72e31901f3","versionType":"git"},{"version":"7c052c6615297ff32032105130cd5f02059f7ae4","status":"affected","lessThan":"fe6446215bfad11cf3b446f38b28dc7708973c25","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/firmware/cirrus/test/cs_dsp_mock_bin.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_mock_bin.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8f4cc454a0bb45b800bc7817c09c8f72e31901f3"},{"url":"https://git.kernel.org/stable/c/fe6446215bfad11cf3b446f38b28dc7708973c25"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:26:06.115Z"},"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"}}}}}