android_kernel_motorola_sm6375/drivers/soc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chris Lew 64c5e916fa soc: qcom: qmi_encdec: Restrict string length in decode
commit 8d207400fd6b79c92aeb2f33bb79f62dff904ea2 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: [email protected]
Signed-off-by: Chris Lew <[email protected]>
Signed-off-by: Praveenkumar I <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-09-23 10:59:57 +02:00
..
actions
amlogic
aspeed
atmel
bcm
dove
fsl
gemini
imx
ixp4xx
lantiq
mediatek
qcom
renesas
rockchip
samsung
sunxi
tegra
ti
ux500
versatile
xilinx
zte
Kconfig
Makefile