In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: qdsp6: q6afe: fix clk vote response type mismatch The response sent by the firmware when requesting a clock vote (opcode AFE_CMD_RSP_REMOTE_LPASS_CORE_HW_VOTE_REQUEST) does not actually have the same opcode + status payload as APR_BASIC_RSP_RESULT. Rather, it returns one single u32 which is the client_handle that must be used in future unvote requests for the same clock. As a result of this type confusion, the status returned by the callback to q6afe_vote_lpass_core_hw was actually an out-of-bounds read. It was only interpreted as success (0) most of the time due to luck, but there are some reports of random errors such as: [ 20.961100] qcom-q6afe aprsvc:service:4:4: AFE failed to vote (3) [ 20.961131] Failed to prepare clk 'core': -110 Fix by correctly interpreting the response as a single u32, and actually store it as the client_handle to ensure unvote would work correctly.
https://git.kernel.org/stable/c/f3c7bee984aa0ba2b48a44e16a6f3ec2c27f851e
https://git.kernel.org/stable/c/cc59f501c1622b6be787fbb1cb1ae335562c6589
https://git.kernel.org/stable/c/a55460a33402c09a8733d5ddbcb6db9865de50be
https://git.kernel.org/stable/c/9671fe1c5da3037cffa2e252380007376cabc931
https://git.kernel.org/stable/c/520bb647f67e5a2535e981837606dee9b0da97fe
https://git.kernel.org/stable/c/4322459cc7a1e27abca472064ea44b8beaa04eef
https://git.kernel.org/stable/c/39be15d0c1463976ff7585e1e45cfe56ead60956
https://git.kernel.org/stable/c/18cfafe23dc689cb692561b2f7994ad5959c8c2f