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

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

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

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
cve-2023-6931-hitv205n — CVE-2023-6931 temporary-root port for Hisense HITV205N (TOUCH Lite), kernel 4.19.157-perf | Kitploit
도구/GitHubGitHub/koast18/cve-2023-6931-hitv205n
Android SecurityPrivilege EscalationExploitationReverse EngineeringMobile SecurityPayload DevelopmentBinary Exploitation
GitHubkoast18/cve-2023-6931-hitv205n

cve-2023-6931-hitv205n

CVE-2023-6931 temporary-root port for Hisense HITV205N (TOUCH Lite), kernel 4.19.157-perf

저장소 보기
12026년 11월 8일아직 검토되지 않음
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

CVE-2023-6931 — Hisense HITV205N (Hisense TOUCH Lite) temporary root port

A CVE-2023-6931 privilege escalation port for the Hisense HITV205N / TOUCH Lite (Qualcomm SM4250 / SD460, kernel 4.19.157-perf), intended for security research on your own device.

Upstream: Yutori-Natsu/cve-2023-6931-pipa (Xiaomi Pad 6) Principle: the temporary root approach described in fynks/awesome-temporary-root


What is this

CVE-2023-6931 is an out-of-bounds write primitive caused by incomplete validation of group read_size in perf_event_open(). The exploit chain (following pipa's approach):

1) perf group read_size 溢出              -> 越界 u64 自增原语
2) 自增 victim netlink_sock->sk_destruct  -> netlink_sock_destruct_work
3) close(victim) -> sk_free -> __sk_destruct -> container_of(work, netlink_sock, 0x440)
   -> fake sock -> fake->sk_destruct = pivot (mov sp,x19)
4) 栈迁移到 fake 内的 skb 载荷
5) entry trampoline -> eret EL1h -> commit_creds(&init_cred)
6) eret EL0 -> post_root

Effect: uid=0 + SELinux permissive within the current boot, invalidated on reboot. No partitions are modified, the bootloader remains locked, and the boot image remains unchanged.


Target device

ItemValue
ModelHisense HITV205N (TOUCH Lite)
SoCQualcomm SM4250 / SD460 (bengal / kamorta)
KernelLinux version 4.19.157-perf (clang 10.0.7, SMP PREEMPT, 2023-07-12)
SystemAndroid 11 / RKQ1.210107.001 / L1834.6.01.02 / patch 2021-07-05
VA_BITS39, 4K pages, text_offset 0x80000
KASLROn (RANDOMIZE_BASE=y)
KPTIOff (UNMAP_KERNEL_AT_EL0 not set)
SW PANOn (ARM64_SW_TTBR0_PAN=y)
perf_event_paranoid-1
perf_event_mlock_kb516

Why this kernel is exploitable

CheckResult
CVE-2023-6931 fixNot backported (4.19.157 ≪ fixed version 4.19.301)
CONFIG_USER_NSNot enabled → most other privilege-escalation chains are unavailable, but this chain does not depend on it
perf_event_paranoid=-1Unprivileged processes can open perf events
perf_event_validate_size symbolDoes not exist → the unfixed legacy code path is used

Repository structure

.
├── exploit.c                  上游 exploit,偏移块改为 #include "device_config.h"
├── device_config.h            设备选择(-DDEVICE=<name>,默认 hitv205n)
├── devices/
│   └── hitv205n.h             本机内核符号/gadget/结构体偏移
├── text_syms.h                .text 符号表(50,499 项,自动生成)
├── ro_syms.h                  .rodata 符号表(31,402 项,自动生成)
├── tools/gen_syms.py          从 vmlinux ELF 重新生成上面两个头文件
├── build.sh                   构建脚本(交叉 gcc 或 Android NDK)
└── .github/workflows/build.yml  CI:推 tag 自动构建并发布

Build

GitHub Actions (recommended)

Pushing a v* tag automatically builds and attaches exploit-hitv205n + .sha256 to the Release.

git tag v0.1.0 && git push origin v0.1.0

You can also manually workflow_dispatch on the Actions page, specifying device.

Local

sudo apt install gcc-aarch64-linux-gnu        # 或设置 ANDROID_NDK_HOME
./build.sh exploit-hitv205n

Usage

adb push exploit-hitv205n /data/local/tmp/
adb shell chmod 755 /data/local/tmp/exploit-hitv205n

# 必须从 adb shell(shell 域)启动 —— perf_event 与 netlink 在 app 域不可达
adb shell 'cd /data/local/tmp && setsid nohup ./exploit-hitv205n \
  --selinux-off --layout-interleave --tsec-sid 1 --alarm-us 5000000 \
  > /data/local/tmp/run.out 2>&1 < /dev/null &'

# 成功后 root 命令通道是 FIFO
adb shell 'echo "id" > /data/local/tmp/root_in'
adb shell 'cat /data/local/tmp/root_out'

Only one attempt per boot — 8446 sibling events will exhaust perf_event_mlock_kb = 516. To retry, you must first reboot the device (or kill -9 the old instance and confirm the perf event has been released).


Where the offsets come from

The kernel symbol table is not copied from anywhere; it is taken live from the boot_a.bin backed up via EDL from this device:

# 1. 从 boot.img 取出 kernel 并解压(gzip)
# 2. vmlinux-to-elf 重建符号表(本机 107,395 个符号)
vmlinux-to-elf kernel.raw vmlinux.elf
# 3. 生成 exploit 用的符号表
python tools/gen_syms.py vmlinux.elf .

Verification Record

ItemLocal machinepipa targetConclusion
_text0xffffff80080800000xffffff8008080000Match
netlink_sock_destruct → _work spacing0x28e80x28e8Match
struct sock.sk_destruct704704Match (confirmed by __sk_destruct disassembly)
struct sock.sk_rcu720720Match (sub x19,x0,#0x2d0)
nlk->groups824 (0x338)824Match (netlink_sock_destruct disassembly)
mov sp,x19 pivot0x4734 → ret_to_user0x840e0 → 0x843a8Same structure, different offsets
perf_event_mlock_kb516516Match

⚠️ Status: Requires calibration on real hardware

Completed:

  • Extracted all required symbols from the local kernel (items marked [A] in devices/hitv205n.h)
  • Gadget location (pivot / ret_to_user / TRAMP2 / TRAMP2C / bare ret)
  • Cross-verified key offsets of struct sock / netlink_sock via disassembly
  • Symbol table generation + CI build

Not yet verified on real hardware (items marked [B] / [D]):

  • SK_WMEM_ALLOC_OFF, SK_REUSEPORT_CB_OFF, NLK_PORTID_OFF — configuration-related, require --probe to re-check
  • The specific entry point of the entry trampoline (KPTI is disabled on the local machine, so the TRAMP_NOKPTI branch is taken)
  • perf group layout constants (empirical values such as P_OFF_DEFAULT=44)

Do not run the prebuilt binary directly — incorrect offsets will cause an oops. For the first run, it is recommended to use --probe.



Parameters for diagnostics / calibration

exploit.c retains all upstream debug switches; porting calibration mainly relies on these:

ParameterPurpose
--probe-onlyRun only up to the probing stage and exit without triggering — use this first when testing on the device
--dryDry run, to verify whether address resolution and the KASLR slide are correct
--kbase-override / --kshiftManually specify the kernel base address / slide, used to rule out problems in the leak stage
--diag / --diag-geo / --diag-matchPrint heap layout and matching status
--skbprobe / --posprobeCalibrate the offset of the skb payload within the slot (P_OFF_DEFAULT)
--calib-zero / --no-calibCalibration switches
--test-trampTest the entry trampoline separately (corresponds to OFF_TRAMP_RESTORE/OFF_TRAMP_NOKPTI on the local machine)
--test-ret / --test-cred-ret / --test-exitTest each hop of the ROP chain in stages
--sib-countAdjust the number of sibling events (limited by perf_event_mlock_kb=516)

Recommended order: --dry → --probe-only → --test-tramp → full --selinux-off.

Security Notes

  • This repository is intended solely for security research on your own hardware.
  • A failed exploit may trigger a kernel oops (on the local machine CONFIG_PANIC_ON_OOPS is not enabled, so the kernel usually survives).
  • After success, SELinux becomes permissive until reboot, during which device security is reduced.
  • Please make a full disk backup before proceeding (the local machine already has a 12.36 GiB EDL backup).
  • This repository does not provide any means to bypass the bootloader lock.

License

exploit.c is derived from Yutori-Natsu/cve-2023-6931-pipa; this port is likewise intended for research use only.

도구 다운로드

관련 도구

  • 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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →