acrn-kernel/drivers/soc
Chris Lew f6250ecb7f soc: qcom: qmi_encdec: Restrict string length in decode
commit 8d207400fd upstream.

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: 9b8a11e826 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-19 12:27:57 +02:00
..
actions
amlogic
apple
aspeed
atmel
bcm
canaan
dove
fsl
fujitsu
gemini
imx
ixp4xx
lantiq
litex
mediatek
microchip
pxa
qcom
renesas
rockchip
samsung
sifive
sunxi
tegra
ti
ux500
versatile
xilinx
Kconfig
Makefile