Commit 7a98bd8
committed
Added checks for xIndex in ThreadLocalStorage APIs
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>1 parent da73aa6 commit 7a98bd8
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3600 | 3600 | | |
3601 | 3601 | | |
3602 | 3602 | | |
3603 | | - | |
| 3603 | + | |
| 3604 | + | |
3604 | 3605 | | |
3605 | 3606 | | |
3606 | 3607 | | |
| |||
3619 | 3620 | | |
3620 | 3621 | | |
3621 | 3622 | | |
3622 | | - | |
| 3623 | + | |
| 3624 | + | |
3623 | 3625 | | |
3624 | 3626 | | |
3625 | 3627 | | |
| |||
0 commit comments