Summary
FreeRTOS-Kernel is a real-time operating system kernel for microcontrollers and small microprocessors. An issue exists where, under certain circumstances, the MPU buffer authorization check on the Arm Cortex-R82 (Armv8-R AArch64) MPU port does not correctly account for the full length of a buffer passed by an unprivileged task, allowing that task to access privileged kernel memory beyond the validated window.
Impact
The MPU buffer authorization check on the Arm Cortex-R82 MPU port in FreeRTOS-Kernel does not correctly account for the full length of a buffer passed to a stream buffer system call. Under certain conditions, an unprivileged task on an MPU-enabled build might read or write privileged kernel memory beyond the validated buffer window, escalating its privileges and bypassing the MPU-enforced task isolation the port is intended to provide. This issue affects Arm Cortex-R82 builds with configENABLE_MPU=1; applications that do not use the FreeRTOS MPU are not affected.
Patches
This issue has been addressed in FreeRTOS-Kernel version V11.3.2. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.
Workarounds
There is no risk when not using the FreeRTOS MPU on the Arm Cortex-R82 port. Where the Arm Cortex-R82 port and MPU feature are in use, upgrading to the fixed version is the recommended remediation.
References
If you have any questions or comments about this advisory, please reach out to AWS Security via https://aws.amazon.com/security/vulnerability-reporting/ or email aws-security@amazon.com. Please do not create a public GitHub issue.
Acknowledgement
We would like to thank Anthropic and Ada Logics for cooperating with us via the coordinated vulnerability disclosure process.
Summary
FreeRTOS-Kernel is a real-time operating system kernel for microcontrollers and small microprocessors. An issue exists where, under certain circumstances, the MPU buffer authorization check on the Arm Cortex-R82 (Armv8-R AArch64) MPU port does not correctly account for the full length of a buffer passed by an unprivileged task, allowing that task to access privileged kernel memory beyond the validated window.
Impact
The MPU buffer authorization check on the Arm Cortex-R82 MPU port in FreeRTOS-Kernel does not correctly account for the full length of a buffer passed to a stream buffer system call. Under certain conditions, an unprivileged task on an MPU-enabled build might read or write privileged kernel memory beyond the validated buffer window, escalating its privileges and bypassing the MPU-enforced task isolation the port is intended to provide. This issue affects Arm Cortex-R82 builds with configENABLE_MPU=1; applications that do not use the FreeRTOS MPU are not affected.
Patches
This issue has been addressed in FreeRTOS-Kernel version V11.3.2. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.
Workarounds
There is no risk when not using the FreeRTOS MPU on the Arm Cortex-R82 port. Where the Arm Cortex-R82 port and MPU feature are in use, upgrading to the fixed version is the recommended remediation.
References
If you have any questions or comments about this advisory, please reach out to AWS Security via https://aws.amazon.com/security/vulnerability-reporting/ or email aws-security@amazon.com. Please do not create a public GitHub issue.
Acknowledgement
We would like to thank Anthropic and Ada Logics for cooperating with us via the coordinated vulnerability disclosure process.