soundwire: qcom: fix storing port config out-of-bounds
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff, Kernel 32eb67d7360d48c15883e0d21b29c0aab9da022e, Kernel 490937d479abe5f6584e69b96df066bc87be92e9 and 1 more.
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
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.13, >=9916c02ccd74e672b62dd1a9017ac2f237ebf512 <20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff, >=9916c02ccd74e672b62dd1a9017ac2f237ebf512 <32eb67d7360d48c15883e0d21b29c0aab9da022e, >=9916c02ccd74e672b62dd1a9017ac2f237ebf512 <490937d479abe5f6584e69b96df066bc87be92e9, >=9916c02ccd74e672b62dd1a9017ac2f237ebf512 <801daff0078087b5df9145c9f5e643c28129734b | 20f7c4d51c94abb1a1a7c21900db4fb5afe5c8ff, 32eb67d7360d48c15883e0d21b29c0aab9da022e, 490937d479abe5f6584e69b96df066bc87be92e9, 801daff0078087b5df9145c9f5e643c28129734b |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket