In the Linux kernel, the following vulnerability has been resolved:
soundwire: qcom: fix storing port config out-of-bounds
The 'qcomswrmctrl->pconfig' has size of QCOMSDWMAXPORTS (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 'qcomswrm_ctrl' struct. Reported also by smatch:
drivers/soundwire/qcom.c:1269 qcomswrmgetportconfig() error: buffer overflow 'ctrl->pconfig' 14 <= 14