Skip to content

Harden OP-TEE parameter memory allocation#833

Open
sangho2 wants to merge 1 commit intomainfrom
sanghle/optee/fix_alloc
Open

Harden OP-TEE parameter memory allocation#833
sangho2 wants to merge 1 commit intomainfrom
sanghle/optee/fix_alloc

Conversation

@sangho2
Copy link
Copy Markdown
Contributor

@sangho2 sangho2 commented May 6, 2026

This PR caps the memory allocation for OP-TEE parameter passing to avoid potential DoS attacks. Note that OP-TEE OS does not specify this cap because it lets the secure-world kernel directly access the normal-world memory (which is subject to TOCTTOU attacks). In contrast, the OP-TEE shim copies data into the secure world memory, such that it should specify the cap. For now, the cap is 8 MiB.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

@sangho2 sangho2 marked this pull request as ready for review May 6, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant