{"id":"CVE-2023-53465","state":"PUBLISHED","title":"soundwire: qcom: fix storing port config out-of-bounds","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoundwire: qcom: fix storing port config out-of-bounds\n\nThe 'qcom_swrm_ctrl->pconfig' has size of QCOM_SDW_MAX_PORTS (14),\nhowever we index it starting from 1, not 0, to match real port numbers.\nThis can lead to writing port config past 'pconfig' bounds and\noverwriting next member of 'qcom_swrm_ctrl' struct.  Reported also by\nsmatch:\n\n  drivers/soundwire/qcom.c:1269 qcom_swrm_get_port_config() error: buffer overflow 'ctrl->pconfig' 14 <= 14","publishedAt":"2025-10-01T11:42:36.007Z","updatedAt":"2026-08-05T09:14:13.583Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff","versionType":"git"},{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"801daff0078087b5df9145c9f5e643c28129734b","versionType":"git"},{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"32eb67d7360d48c15883e0d21b29c0aab9da022e","versionType":"git"},{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"490937d479abe5f6584e69b96df066bc87be92e9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soundwire/qcom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.40","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.5","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soundwire/qcom.c"]}],"references":["https://git.kernel.org/stable/c/20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff","https://git.kernel.org/stable/c/801daff0078087b5df9145c9f5e643c28129734b","https://git.kernel.org/stable/c/32eb67d7360d48c15883e0d21b29c0aab9da022e","https://git.kernel.org/stable/c/490937d479abe5f6584e69b96df066bc87be92e9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53465.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53465","state":"PUBLISHED","datePublished":"2025-10-01T11:42:36.007Z","dateUpdated":"2026-08-05T09:14:13.583Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-01T11:39:39.400Z"},"containers":{"cna":{"title":"soundwire: qcom: fix storing port config out-of-bounds","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoundwire: qcom: fix storing port config out-of-bounds\n\nThe 'qcom_swrm_ctrl->pconfig' has size of QCOM_SDW_MAX_PORTS (14),\nhowever we index it starting from 1, not 0, to match real port numbers.\nThis can lead to writing port config past 'pconfig' bounds and\noverwriting next member of 'qcom_swrm_ctrl' struct.  Reported also by\nsmatch:\n\n  drivers/soundwire/qcom.c:1269 qcom_swrm_get_port_config() error: buffer overflow 'ctrl->pconfig' 14 <= 14"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff","versionType":"git"},{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"801daff0078087b5df9145c9f5e643c28129734b","versionType":"git"},{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"32eb67d7360d48c15883e0d21b29c0aab9da022e","versionType":"git"},{"version":"9916c02ccd74e672b62dd1a9017ac2f237ebf512","status":"affected","lessThan":"490937d479abe5f6584e69b96df066bc87be92e9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soundwire/qcom.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.121","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.40","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.5","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/soundwire/qcom.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff"},{"url":"https://git.kernel.org/stable/c/801daff0078087b5df9145c9f5e643c28129734b"},{"url":"https://git.kernel.org/stable/c/32eb67d7360d48c15883e0d21b29c0aab9da022e"},{"url":"https://git.kernel.org/stable/c/490937d479abe5f6584e69b96df066bc87be92e9"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is a platform-bus SoundWire controller driver reached only through local device probe (device-tree contents / driver bind) and, on the read side, through local ALSA PCM ioctls on the SoundWire-backed sound card. No network or remote peer data is involved.\nAC:L - The overflow is fully deterministic — no race, no memory-layout luck: on a controller configured with 14 total ports the write to pconfig[14] happens on every probe, and allocating port 14 for a stream deterministically reads the out-of-bounds entry.\nPR:L - On an affected platform the out-of-bounds pconfig[14] access is triggerable at runtime by any local user able to open the SoundWire PCM device (audio group, or any Android app with audio access) through the normal stream-allocation path, with no capability required.\nUI:N - No victim action is needed — the probe-time write occurs automatically at boot, and the runtime path is driven entirely by the attacker's own PCM open/hw_params sequence.\nS:U - Both the flaw and its consequences are kernel memory corruption within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The out-of-bounds access straddles ctrl->sruntime[0], so the read path exposes bytes of a kernel heap pointer (defeating KASLR) and the corresponding write is memory corruption that can be leveraged for further disclosure.\nI:H - This is an out-of-bounds write that overwrites the low 32 bits of an adjacent kernel pointer field with device-tree-derived values, corrupting kernel state outside the intended object.\nA:H - Corrupting the sdw_stream_runtime pointer stored in ctrl->sruntime[0] can lead to a wild dereference and kernel oops when the stream is subsequently used, taking down the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:14:13.583Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.121"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.4.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}