Critical Severity
Published: Oct 25, 2026

[GitHub] matisse-public

Rce
Type
N/A
CVSS Score
83
Views
Anonymous
Author

Description

Redmi K50 Pro (matisse / MT6983 / kernel 5.10.209): uid=0 exploit + KernelSU LKM late-load on a locked bootloader. Full source, offsets, build recipe and write-up.

# matisse-public — Redmi K50 Pro (MT6983) / kernel 5.10.209 privilege escalation and KernelSU loading documentation

> **English TL;DR** — A fully documented, from-scratch writeup + toolkit for obtaining `uid=0` with a kernel SID on a **Redmi K50 Pro (matisse, MediaTek MT6983, kernel 5.10.209)** and loading **KernelSU via LKM late-load**, without unlocking the bootloader. Full source is published on purpose: a root tool you cannot audit is a root tool you should not trust.

---

## Why publishing all source code

This repository does **privilege escalation**. Any closed-source tool that claims to "give you root" should be suspected: it can equally well do other things quietly, and you cannot verify. Therefore we **proactively publish all source code, log formats, failure processes and reproduction steps**, including:

- Complete exploit source code (`payload_src/`) — you can read line by line, compile yourself, compare hashes
- All scripts and criteria (`tools/`, `ksu_persist.sh`) — including **the attempts that failed**
- Real kernel panic excerpts (`evidence/`) — proving the crashes we encountered and their root causes
- Build recipes and product hashes (`payload_src/mt87_build/BUILD_INFO.txt`, `SHA256SUMS`) — for you to verify
- Clear **scope boundaries and disclaimers** (see below)

**Does not contain**: any device identifiers (serial numbers / MAC addresses), personal data. Third-party derived code sources and licenses are **listed item by item in [`NOTICE.md`](NOTICE.md) and [`payload_src/PROVENANCE.md`](payload_src/PROVENANCE.md)**.

---

## Results (verifiable)

| Item | Tested evidence |
|---|---|
| `uid=0` | `su -c id` → `uid=0(root) gid=0(root) groups=0(root)` |
| **kernel SID** | Same line as `context=u:r:ksu:s0` |
| **KernelSU loaded** | `/proc/modules` → `kernelsu … - Live` |
| Loader log | `/data/local/tmp/ksu_go.log` → `uid=0` / `load_policy rc=0` / `late-load rc=0` / `modules: 1` |
| Device not crashed | Same `boot_id` throughout, `uptime` increases continuously |

Complete report: [WIN_20261003_1620_uid0_kernelsu.md](WIN_20261003_1620_uid0_kernelsu.md)

> **Verification**: Hashes of products released in this repository are in [`SHA256SUMS`](SHA256SUMS); build recipes and expected sha256 of exploit products are in [`payload_src/mt87_build/BUILD_INFO.txt`](payload_src/mt87_build/BUILD_INFO.txt). If you do not trust any binaries, please compile from source only.

---

## What it does (high level)

1. **R round**: Perform heap layout on `fd_set` of `pselect`, combined with use-after-free `pi_blocked_on` of released `rt_waiter` triggering `rt_mutex_adjust_prio_chain` walk, landing on a controlled write (writing `task->real_cred`).
2. **E5 round**: Zero out SELinux enforcing (per-Android `enforcing-8` write), entering Permissive.
3. **C round**: Write `task->cred` (actual uid=0 + kernel SID).
4. **gate branch** (key patch in this repository): At the **exact moment of obtaining uid=0**, call `system("sh /data/local/tmp/ksu_go.sh &")` — using the official userspace loader to load KernelSU.

Translated to English from Chinese. Show original · see the source links.
Community Rating
0

Login to rate this exploit

Quick Actions