Skip to content

Comments

kernel: Ensure manager is valid before installing fd#3115

Merged
aviraxp merged 3 commits intomainfrom
aviraxp-patch-4
Dec 28, 2025
Merged

kernel: Ensure manager is valid before installing fd#3115
aviraxp merged 3 commits intomainfrom
aviraxp-patch-4

Conversation

@aviraxp
Copy link
Collaborator

@aviraxp aviraxp commented Dec 28, 2025

Or if manager is not crowned, userspace can pass the check if calling setresuid(-1, -1, -1). Luckily, first setuid is usually called when zygote forks into app and task flag is unmarked there, so this is not a security issue.

Or if manager is not crowned, -1 will pass the check when userspace calls setresuid(-1, -1, -1) and incorrectly install fd for whatever app. Luckily, first setuid is usually called when zygote forks into app and task flag is unmarked there, so this is not a security issue.
@aviraxp aviraxp merged commit d80f822 into main Dec 28, 2025
17 checks passed
@aviraxp aviraxp deleted the aviraxp-patch-4 branch December 28, 2025 16:10
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Dec 29, 2025
Or if manager is not crowned, userspace can pass the check if calling
setresuid(-1, -1, -1). Luckily, first setuid is usually called when
zygote forks into app and task flag is unmarked there, so this is not a
security issue.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
Or if manager is not crowned, userspace can pass the check if calling
setresuid(-1, -1, -1). Luckily, first setuid is usually called when
zygote forks into app and task flag is unmarked there, so this is not a
security issue.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
Or if manager is not crowned, userspace can pass the check if calling
setresuid(-1, -1, -1). Luckily, first setuid is usually called when
zygote forks into app and task flag is unmarked there, so this is not a
security issue.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
Or if manager is not crowned, userspace can pass the check if calling
setresuid(-1, -1, -1). Luckily, first setuid is usually called when
zygote forks into app and task flag is unmarked there, so this is not a
security issue.
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
Or if manager is not crowned, userspace can pass the check if calling
setresuid(-1, -1, -1). Luckily, first setuid is usually called when
zygote forks into app and task flag is unmarked there, so this is not a
security issue.
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