soc: qcom: mdt_loader: Ensure we don't read past the ELF header
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2aad40d911eeb7dcac91c669f2762a28134f0eb1 · < 87bfabb3b2f46827639173f143aa43f7cfc0a7e6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
soc: qcom: mdt_loader: Ensure we don't read past the ELF header
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.
From the CVE record · Linux
The Linux kernel's Qualcomm MDT loader may read past an ELF header when clients other than remoteproc use a firmware buffer that has not been sanitized. The issue occurs while traversing the header if the buffer size or header entry sizes are invalid; the input does not specify an attack path or authentication requirements.
Engineers running Linux kernels that use the Qualcomm MDT loader should check whether their kernel is affected; affected versions are not specified.