Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
Sony-XBR-65X850D — Kernel root exploit & boot persistence research on Sony Bravia Android TV (MT5890): CVE-2022-22706 page-cache write, targeted setresuid hook, and persistent root console | Kitploit
도구/GitHubGitHub/bennywaitwhat/sony-xbr-65x850d
Android SecurityEmbedded Systems SecurityPrivilege EscalationPersistence MechanismsExploitationReverse EngineeringPapers & ResearchRemote Access ToolPayload DevelopmentBinary Exploitation
GitHub
512026년 10월 27일아직 검토되지 않음
공유
bennywaitwhat/sony-xbr-65x850d

Sony-XBR-65X850D

Kernel root exploit & boot persistence research on Sony Bravia Android TV (MT5890): CVE-2022-22706 page-cache write, targeted setresuid hook, and persistent root console

저장소 보기
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

Sony BRAVIA XBR-65X850D Root & Persistence Research

Device SoC Android Kernel CVE Status


1. Executive Summary & Problem Space

Consumer embedded appliances routinely reach end-of-support while remaining active daily-driver devices in living rooms. The Sony Bravia XBR-65X850D (board platform SVP-DTV15, MediaTek MT5890 SoC) received its final system firmware upgrade to Android 8.0.0 Oreo (OPR2.170623.027.S16, release 6.827) in early 2020. The Android Security Patch Level (SPL) was frozen at 2020-01-01 and never patched again.

Standard device hardening enforces strict hardware and OS-level boundaries:

  • Hardware & Bootloader: ro.boot.flash.locked=1, ro.secure=1, ro.debuggable=0, and kernel dm-verity cryptographically seal /system against offline modification.
  • Storage Protection: /data is mounted nosuid, neutralizing classic setuid binary drops.
  • Firmware Integrity: Recovery partitions reject unsigned USB packages, and hardware UART is physically inaccessible without panel destruction.
  • Kernel & LSM: SELinux runs in strict enforcing mode across all domains (permissive=0).
                              ┌─────────────────────────────────────────────────────────┐
                              │           SONY BRAVIA XBR-65X850D TRUST PERIMETER       │
                              │                                                         │
  ADB TCP :5555 (uid 2000) ──►│  [Blocked] dm-verity: Read-only block storage (eMMC)   │
                              │  [Blocked] nosuid mount on /data                       │
                              │  [Blocked] Recovery image signature verification        │
                              │  [VULNERABLE] World-accessible /dev/mali0 (Midgard)    │
                              └───────────────────────────┬─────────────────────────────┘
                                                          │
                                                          ▼
                                    CVE-2022-22706 Page-Cache Write Primitive
                                    (Mutates memory without touching flash storage)

This repository documents the end-to-end vulnerability research, weaponization, and reboot-surviving persistence pipeline developed against this target. By exploiting CVE-2022-22706 in the unpatched ARM Mali kbase kernel driver, an arbitrary RAM page-cache write primitive was forged. This primitive was utilized to install a targeted syscall hook on libc.so (setresuid), allowing our probe application to retain uid 0 upon fork while preserving normal privilege drops for core Android TV services. Combined with a self-healing JobScheduler persistence loop, the exploit exposes a full interactive root shell over TCP port 4445 (LAN and Tailscale) that returns cleanly after every cold reboot without manual intervention.


2. Exploit & Persistence Architecture

The entire attack chain operates strictly in memory, leaving flash storage pristine and dm-verity validation 100% intact.

Exploit and Persistence Architecture Diagram

Pipeline Phases

  1. Foothold & Driver Access: ADB over Wi-Fi lands in uid 2000 (u:r:shell:s0). Among 647 nodes in /dev, /dev/mali0 is world-accessible (crw-rw-rw-). The driver is ARM Mali Midgard r20p0-01rel0 (UK version 10.6), published in 2020 and unpatched against post-2020 CVEs.
  2. Page-Cache Corruption (CVE-2022-22706): Exploit imports an anonymous user buffer into Mali with KBASE_REG_CPU_WR enabled but KBASE_REG_GPU_WR cleared. The target file (/system/lib/libc.so) is mapped read-only and mremap'd over the imported buffer. Submitting a soft-event-wait atom forces the kernel's get_user_pages() to pin the actual Linux page-cache page read-only while handing userspace a writable GPU alias. Writing through this alias mutates the shared executable memory of all system processes.
  3. Targeted setresuid Hook: The first 4 bytes of setresuid at offset 0x4a990 in libc.so are overwritten with an ARM branch b 0x25a90 (3e 6c ff ea). The branch lands in __ns_sprintrrf (an unused 7,724-byte DNS debug formatter). The hook checks r0 == 10014 (our probe app UID). If matched, it returns 0 (mov r0, #0; bx lr), bypassing the privilege drop. All other processes jump to the real syscall (mov r7, #208; svc #0; bx lr), preventing OS instability.
  4. Autonomous Boot Persistence: Android TV 8.0 suppresses BOOT_COMPLETED for sideloaded applications. Persistence is achieved via Android's JobScheduler (setPersisted(true), setMinimumLatency(1500)). The job runs under normal UID 10014, invokes JNI libpwn.so to re-apply the page-cache patch, schedules an AlarmManager wake-up (+3s), and kills its own process. The alarm triggers Zygote to fork a fresh process; setresuid intercepts the drop, and the application launches as uid=0(root).
  5. Interactive Console Daemon: The elevated process initiates ConsoleService (a sticky foreground service) listening on TCP port 4445. It authenticates connections via token and executes shell commands as uid 0, bypassing Android framework permission gates.

3. Technical Deep Dive

3.1 Kernel Vulnerability Analysis (CVE-2022-22706)

In Mali driver version r20p0-01rel0, user-space buffer memory imported via KBASE_IOCTL_MEM_IMPORT evaluates pinning flags inconsistently in mali_kbase_mem_linux.c:

/* Pinning logic in kernel driver: only GPU write flag governs FOLL_WRITE */
err = get_user_pages(current, current->mm,
                     reg->imported->user_buffer.ptr,
                     reg->imported->user_buffer.length >> PAGE_SHIFT,
                     reg->flags & KBASE_REG_GPU_WR ? FOLL_WRITE : 0,  /* ← pin mode */
                     pages, NULL);

/* CPU mapping logic: governed by separate CPU write flag */
if (reg->flags & KBASE_REG_CPU_WR) {
    /* allocates writable userspace CPU alias */
}

By requesting flags = KBASE_REG_CPU_RD | KBASE_REG_CPU_WR | KBASE_REG_GPU_RD (value 0x7), FOLL_WRITE is not passed to get_user_pages. The kernel pins the page without marking it dirty or triggering Copy-on-Write (COW).

도구 다운로드

관련 도구

  • Mobile-Security-Framework-MobSF

    Android, iOS, Windows용 자동화된 모바일 애플리케이션 보안 테스트 프레임워크입니다. 정적 및 동적 분석, 멀웨어 탐지, CI/CD 통합을 통한 API 보안 테스트를 수행합니다.

  • jadx

    Android Dex 및 APK 파일을 읽을 수 있는 Java 소스 코드로 디컴파일하는 명령줄 및 GUI 도구입니다. 리소스 디코딩, 난독 해제 및 Smali 디버깅 기능을 제공합니다.

  • Apktool

    Android apk 파일을 리버스 엔지니어링하기 위한 도구입니다.

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    SMS를 가로채고, 메시지를 주입하며, 모바일 기기를 추적하기 위해 악성 GSM 셀을 배포하는 IMSI Catcher 플랫폼

    732
  • 3

    Callisto

    jetp1ane/callisto

    Ghidra를 통해 실행 파일을 디컴파일하고, Semgrep으로 의사 C 코드를 스캔하며, GPT-3.5-Turbo를 사용하여 결과를 검증해 거짓 양성을 줄이는 자동화된 바이너리 취약점 분석 도구입니다.

    610
  • 4

    opencti

    opencti-platform/opencti

    오픈 사이버 위협 인텔리전스 플랫폼

    546
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    414
  • 6

    DFRoot

    a2333c/dfroot

    삼성 Galaxy S25 Ultra(SM-S938B)용 Android 루트 도구로, DirtyFrag CVE-2026-43284와 CVE-2026-43499를 연쇄하여 KernelSU를 통해 부팅 시 자동으로 루트 권한을 획득합니다.

    413

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →