mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-08-06 21:25:04 +00:00
It was possible for a third party that already independently gained the ability to execute injected code to read from or write to arbitrary addresses by passing a negative argument as the xIndex parameter to pvTaskGetThreadLocalStoragePointer() or vTaskSetThreadLocalStoragePointer respectively. This commit adds checks to ensure that passing a negative argument as the xIndex parameter does not cause arbitrary read or write. We thank Certibit Consulting, LLC for reporting this issue. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
221 KiB
221 KiB