# CVE-2023-53465: soundwire: qcom: fix storing port config out-of-bounds

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-10-01T11:42:36.007Z
- Modified: 2026-08-05T09:14:13.583Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

soundwire: qcom: fix storing port config out-of-bounds

The 'qcom_swrm_ctrl->pconfig' has size of QCOM_SDW_MAX_PORTS (14),
however we index it starting from 1, not 0, to match real port numbers.
This can lead to writing port config past 'pconfig' bounds and
overwriting next member of 'qcom_swrm_ctrl' struct.  Reported also by
smatch:

  drivers/soundwire/qcom.c:1269 qcom_swrm_get_port_config() error: buffer overflow 'ctrl->pconfig' 14 <= 14

(As written by CVE List.)

## Affected

- Linux Linux: from 9916c02ccd74e672b62dd1a9017ac2f237ebf512 before 20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff; from 9916c02ccd74e672b62dd1a9017ac2f237ebf512 before 801daff0078087b5df9145c9f5e643c28129734b; from 9916c02ccd74e672b62dd1a9017ac2f237ebf512 before 32eb67d7360d48c15883e0d21b29c0aab9da022e; from 9916c02ccd74e672b62dd1a9017ac2f237ebf512 before 490937d479abe5f6584e69b96df066bc87be92e9; 5.13 (not affected: before 5.13; from 5.15.121 up to 5.15.*; from 6.1.40 up to 6.1.*; from 6.4.5 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 5.13 before 5.15.121; from 5.16 before 6.1.40; from 6.2 before 6.4.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff> (patch)
- <https://git.kernel.org/stable/c/801daff0078087b5df9145c9f5e643c28129734b> (patch)
- <https://git.kernel.org/stable/c/32eb67d7360d48c15883e0d21b29c0aab9da022e> (patch)
- <https://git.kernel.org/stable/c/490937d479abe5f6584e69b96df066bc87be92e9> (patch)

## Sources

- CVE List: [CVE-2023-53465](https://www.cve.org/CVERecord?id=CVE-2023-53465), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-53465](https://nvd.nist.gov/vuln/detail/CVE-2023-53465), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-53465 · Whole record: https://cve.day/CVE-2023-53465.json · Rebuilt by cve.day 2026-11-25T22:58:34.896Z
