Skip to content

Releases

v2.0.0-cve-hardening — 35 CVE fixes for SM-G9750

Choose a tag to compare

@tingao tingao released this 06 Nov 15:13

Kernel 4.14.190-gd913da1ac — the stock LineageOS 18.1 4.14.190 kernel for the SM-G9750 with 35 upstream CVE fixes backported, KernelSU-Next root and Droidspaces unchanged.

Verified on a real SM-G9750 (stock Android 12 G9750ZHU8HZE1): functional matrix 26/26 PASS and 4 consecutive cold boots clean — container and Docker autostart with no intervention every time. Details: docs/VERIFICATION.md.

Download

File Use for SHA256
AP-boot-beyond2qlte-droidspaces-cve-hardened-v2.tar.md5 Odin / Windows (AP slot only) 1e1807f519e6d59caa6a7be72e6e31714d02229bd5a54e59f4f31203369bb3d5
boot-cve-hardened-v2.img Linux / rooted phone — dd 64 MiB boot image f532bd0e7e356ec6b0af9e366b9f8237496434008fd25a8be5f3a7ba4bad0a8a
AP-stock-rollback-beyond2qlte.tar.md5 Rollback to the stock boot 954de8f498e775319dd342db6a1696416ab41b2942f953a4c0504c3e85ee5801
cve-hardening-v2-source.tar.zst every patch, config and build script 140e395628c152112222f541993b51aa20e22424976e968b37f9e8b489992387
SHA256SUMS verify downloads —

Check before flashing: sha256sum -c SHA256SUMS and python3 build/verify-tarmd5.py <AP file>.

Install (Odin)

  1. Unlock the bootloader (OEM unlocking → Volume Down + Bixby + USB → Volume Up).
  2. Download Mode; confirm KG STATE : Checking and OEM LOCK : OFF.
  3. Odin → AP slot → this tar. Tick Auto Reboot + F.Reset Time only. Start → PASS!.
  4. Root: Install KernelSU-Next v3.1.0 manager (kernel reports 33129; newer managers do not match).
  5. Droidspaces: install the app — v7.1.0 (release 4344dc5) is the tested runtime — create a container, and Docker inside it needs cgroup v1 + runc.

Full step-by-step: README · FLASHING.md · recovery: docs/RECOVERY.md.

What is in it

  • 35 CVE fixes (29 container→host LPE/escape, 2 LAN-remote, 2 local-LPE, 1 adjacent-remote), chosen by an audit of this exact tree + config — not a version bump. Highlights: CVE-2021-22555, CVE-2020-14386, CVE-2026-80841, CVE-2024-56606, CVE-2024-53140, CVE-2021-47103, CVE-2022-0492, CVE-2021-3347, CVE-2024-41012/41020/42304/47701. Full list: CVE-LIST.md.
  • KernelSU-Next boot-race fix: an intermittent 1-in-4-boots softdog panic (task_work double-queue) found during verification of the first build; v1 was never published, v2 passes the exact boot v1 failed plus one more.
  • Config: NETFILTER_XT_MATCH_ADDRTYPE=y (docker inside the container), IPv6 NAT restored to stock parity, and CONFIG_NF_TABLES deliberately off (removes a whole CVE class).
  • Droidspaces runtime v7.1.0 is the tested runtime: in-place upgrade from v6.6.0 over the running container, 3/3 cold boots clean (container + Docker autostart), no config migration, rollback prepared and dry-run verified. service.sh/post-fs-data.sh are byte-identical between the two versions.

Known limitations

  • This hardens the kernel. Android userspace stays on the stock ROM (security patch level 2023-02-01); kernel patches do not fix userspace CVEs.
  • Hundreds of further vulnerable code paths in this frozen 4.14.190 tree are not patched; the ranked list of what remains (and why) is in the source bundle's audit/TARGET-LIST.md.
  • The rollback tar restores the stock boot image; for a full restore flash your own stock firmware (BL/AP/CP/CSC).

Previous release: v1.0.0 (no CVE fixes).

v1.0.0 - SM-G9750 (beyond2qlte) Droidspaces kernel

Choose a tag to compare

@tingao tingao released this 13 Oct 17:49

Kernel for the Galaxy S10+ Snapdragon (SM-G9750, beyond2qlte): KernelSU-Next root, and Docker working inside a Droidspaces Linux container.

What to flash

AP-boot-beyond2qlte-droidspaces.tar.md5 is an Odin AP file containing:

File What it is
boot.img the kernel: compressed kernel, device DTB, and an AVB0 footer
vbmeta.img AVB structure with verification disabled (flags 3), needed to boot an unsigned kernel

Load it in the AP slot only. Full instructions, including the two bootloader gates that stop most attempts, are in FLASHING.md.

Verify the download first

file   : AP-boot-beyond2qlte-droidspaces.tar.md5
size   : 67123270 bytes
md5 of the tar body : 0e266c0f9a27c2158efa4c510579a474

python3 build/verify-tarmd5.py AP-boot-beyond2qlte-droidspaces.tar.md5
#   VERDICT : ODIN WILL ACCEPT THIS

The kernel

  • Linux 4.14.190, from sm8150-samsung/android_kernel_samsung_sm8150-common, branch lineage-18.1
  • KernelSU-Next 33129 with manual hooks, because the kprobe hooks are documented as 5.10 and above. Install manager v3.1.0 (33024), which is the version that pairs with it
  • Includes the Droidspaces non-GKI cgroup-file-prefix patch. This is the part that makes docker run work inside a container on a 4.14 kernel: without it, runc asks for cpuset.cpus while Android's noprefix cgroup mount only has cpus
  • Verified on stock Android 12, G9750ZHU8HZE1

Requirements

  • Galaxy S10+ SM-G9750 only (not the Exynos beyond2, and not the US beyond2q)
  • Bootloader unlocked, with KG STATE: Checking and OEM LOCK: OFF shown in Download Mode
  • Odin 3.14.x and the Samsung USB drivers

Flashing unofficial software trips Knox permanently, voids the warranty, and can destroy the device.

Thanks

This kernel is mostly other people's work. CREDITS.md names each project and what it contributed, above all ravindu644/Droidspaces, whose cgroup-prefix patch is the reason docker run works on this kernel.