Skip to content

fix(portal): resolve Use-After-Free/TOCTOU in OSI handlers#67

Open
lacraig2 wants to merge 1 commit into
mainfrom
fix/toctou-uaf
Open

fix(portal): resolve Use-After-Free/TOCTOU in OSI handlers#67
lacraig2 wants to merge 1 commit into
mainfrom
fix/toctou-uaf

Conversation

@lacraig2
Copy link
Copy Markdown
Contributor

  • Acquire task_struct reference in get_target_task_by_id under RCU lock
  • Use get_task_mm() instead of unsafe direct task->mm access
  • Add proper cleanup with put_task_struct() and mmput() to balance refcounts

- Acquire task_struct reference in get_target_task_by_id under RCU lock
- Use get_task_mm() instead of unsafe direct task->mm access
- Add proper cleanup with put_task_struct() and mmput() to balance refcounts
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