{"api_version":"1","generated_at":"2026-11-25T06:16:37+00:00","cve":"CVE-2025-40162","urls":{"html":"https://cve.report/CVE-2025-40162","api":"https://cve.report/api/cve/CVE-2025-40162.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40162","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40162"},"summary":{"title":"ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails\n\ndevm_kasprintf() may return NULL on memory allocation failure,\nbut the debug message prints cpus->dai_name before checking it.\nMove the dev_dbg() call after the NULL check to prevent potential\nNULL pointer dereference.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-11-12 11:15:46","updated_at":"2026-10-19 21:10:00"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3","name":"https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2","name":"https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0","name":"https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40162","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40162","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb8ea62e6402067ba092d4c1d66a9440513a572b 095d692e5997ece300c89f10d903d5230090e6a0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb8ea62e6402067ba092d4c1d66a9440513a572b a1cccbd19676fc36854535a7118ba2c27d0b84b3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected cb8ea62e6402067ba092d4c1d66a9440513a572b 5726b68473f7153a7f6294185e5998b7e2a230a2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.55 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.5 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"40162","cve":"CVE-2025-40162","epss":"0.001970000","percentile":"0.088390000","score_date":"2026-10-19","updated_at":"2026-10-20 00:13:48"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["sound/soc/amd/acp/acp-sdw-sof-mach.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"095d692e5997ece300c89f10d903d5230090e6a0","status":"affected","version":"cb8ea62e6402067ba092d4c1d66a9440513a572b","versionType":"git"},{"lessThan":"a1cccbd19676fc36854535a7118ba2c27d0b84b3","status":"affected","version":"cb8ea62e6402067ba092d4c1d66a9440513a572b","versionType":"git"},{"lessThan":"5726b68473f7153a7f6294185e5998b7e2a230a2","status":"affected","version":"cb8ea62e6402067ba092d4c1d66a9440513a572b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["sound/soc/amd/acp/acp-sdw-sof-mach.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.12"},{"lessThan":"6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.55","versionType":"semver"},{"lessThanOrEqual":"6.17.*","status":"unaffected","version":"6.17.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.18","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.55","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.5","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18","versionStartIncluding":"6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails\n\ndevm_kasprintf() may return NULL on memory allocation failure,\nbut the debug message prints cpus->dai_name before checking it.\nMove the dev_dbg() call after the NULL check to prevent potential\nNULL pointer dereference."}],"providerMetadata":{"dateUpdated":"2026-05-11T21:43:56.425Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/095d692e5997ece300c89f10d903d5230090e6a0"},{"url":"https://git.kernel.org/stable/c/a1cccbd19676fc36854535a7118ba2c27d0b84b3"},{"url":"https://git.kernel.org/stable/c/5726b68473f7153a7f6294185e5998b7e2a230a2"}],"title":"ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40162","datePublished":"2025-11-12T10:26:22.883Z","dateReserved":"2025-04-16T07:20:57.176Z","dateUpdated":"2026-05-11T21:43:56.425Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-11-12 11:15:46","lastModifiedDate":"2026-10-19 21:10:00","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40162","Ordinal":"1","Title":"ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fail","CVE":"CVE-2025-40162","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40162","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails\n\ndevm_kasprintf() may return NULL on memory allocation failure,\nbut the debug message prints cpus->dai_name before checking it.\nMove the dev_dbg() call after the NULL check to prevent potential\nNULL pointer dereference.","Type":"Description","Title":"ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fail"}]}}}