summaryrefslogtreecommitdiff
path: root/drivers/soc/bcm/bcm63xx/bcm-pmb.c
diff options
context:
space:
mode:
authorChris Lew <quic_clew@quicinc.com>2023-08-01 09:47:12 +0300
committerBjorn Andersson <andersson@kernel.org>2023-08-03 18:08:07 +0300
commit8d207400fd6b79c92aeb2f33bb79f62dff904ea2 (patch)
treedfbe470dae9cf5122e023efa232e5c8c5884ce5a /drivers/soc/bcm/bcm63xx/bcm-pmb.c
parent5f908786cf44fcb397cfe0f322ef2f41b0909e2a (diff)
downloadlinux-8d207400fd6b79c92aeb2f33bb79f62dff904ea2.tar.xz
soc: qcom: qmi_encdec: Restrict string length in decode
The QMI TLV value for strings in a lot of qmi element info structures account for null terminated strings with MAX_LEN + 1. If a string is actually MAX_LEN + 1 length, this will cause an out of bounds access when the NULL character is appended in decoding. Fixes: 9b8a11e82615 ("soc: qcom: Introduce QMI encoder/decoder") Cc: stable@vger.kernel.org Signed-off-by: Chris Lew <quic_clew@quicinc.com> Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com> Link: https://lore.kernel.org/r/20230801064712.3590128-1-quic_ipkumar@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/soc/bcm/bcm63xx/bcm-pmb.c')
0 files changed, 0 insertions, 0 deletions