USB DFU has a potential buffer overflow where the requested length (wLength) is not checked against the buffer size. This could be used by a malicious USB host to exploit the buffer overflow. See NCC-ZEP-002 This issue affects: zephyrproject-rtos zephyr version 1.14.1 and later versions. version 2.1.0 and later versions.
The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow.
Link | Tags |
---|---|
https://zephyrprojectsec.atlassian.net/browse/ZEPSEC-25 | third party advisory |
https://github.com/zephyrproject-rtos/zephyr/pull/23190 | third party advisory patch |
https://github.com/zephyrproject-rtos/zephyr/pull/23457 | third party advisory patch |
https://github.com/zephyrproject-rtos/zephyr/pull/23460 | third party advisory patch |
https://docs.zephyrproject.org/latest/security/vulnerabilities.html#cve-2020-10019 |