Skip to content

kernel: Ensure manager is valid before installing fd - #3115

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

aviraxp merged 3 commits into
mainfrom
aviraxp-patch-4

Conversation

@aviraxp

@aviraxp aviraxp commented Dec 28, 2025 •

Copy link
Copy Markdown
Collaborator

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.
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this pull request Feb 23, 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.
midori01 pushed a commit to midori01/KernelSU that referenced this pull request Jun 28, 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