android_kernel_motorola_sm6375/drivers/soc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Bjorn Andersson 1096eb63ec soc: qcom: mdt_loader: Ensure we don't read past the ELF header
[ Upstream commit 9f9967fed9d066ed3dae9372b45ffa4f6fccfeef ]

When the MDT loader is used in remoteproc, the ELF header is sanitized
beforehand, but that's not necessary the case for other clients.

Validate the size of the firmware buffer to ensure that we don't read
past the end as we iterate over the header. e_phentsize and e_shentsize
are validated as well, to ensure that the assumptions about step size in
the traversal are valid.

Fixes: 2aad40d911 ("remoteproc: Move qcom_mdt_loader into drivers/soc/qcom")
Cc: [email protected]
Reported-by: Doug Anderson <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/20250610-mdt-loader-validation-and-fixes-v2-1-f7073e9ab899@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-08-28 16:21:35 +02:00
..
actions
amlogic
aspeed soc: aspeed: lpc-snoop: Don't disable channels that aren't enabled 2025-08-28 16:21:15 +02:00
atmel
bcm
dove
fsl soc: fsl: qbman: Use raw spinlock for cgr_lock 2024-04-13 12:51:27 +02:00
gemini
imx
ixp4xx
lantiq
mediatek
qcom soc: qcom: mdt_loader: Ensure we don't read past the ELF header 2025-08-28 16:21:35 +02:00
renesas pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-03-01 13:13:34 +01:00
rockchip
samsung
sunxi
tegra soc/tegra: pmc: Ensure power-domains are in a known state 2025-08-28 16:21:31 +02:00
ti soc: ti: wkup_m3_ipc: Send NULL dummy message instead of pointer message 2024-07-05 09:08:28 +02:00
ux500
versatile soc: versatile: realview: fix soc_dev leak during device remove 2024-11-08 16:20:34 +01:00
xilinx
zte
Kconfig
Makefile