Safety

Knox DualDAR chain roots Galaxy S26 from an app with no permissions

Calif published a Knox DualDAR chain on November 26 that goes from a permission-free app to root on Galaxy S23 and S26; the kernel bug is CVE-2026-21102.

A poster illustration parodying Apocalypse Now: a helicopter over an orange sky and a boat carrying the Android mascot

The security research group Calif published the second part of its OEMpocalypse series on November 26, 2026, and it walks through a complete attack chain against Samsung’s Knox DualDAR: the entry point is an ordinary Android app holding no permissions, and the exit is a root shell on a Galaxy S23, a Galaxy S26, an S26 for the US market and an S26 Ultra. The kernel bug in the middle is tracked as CVE-2026-21102, which NVD scores 9.3 under CVSS 4.0, severity critical. The S26 units used in the demo were retail devices with locked bootloaders and verified boot intact, not developer units unlocked ahead of time.

Key points

  • Two bugs, both required. A confused-deputy flaw in knox_adapter_service lets an unprivileged app drive the dualdard daemon; a page use-after-free in the /dev/dd driver then converts that code execution into arbitrary physical memory read and write.
  • Each Knox layer falls in turn. SELinux is switched to permissive, the data protected by RKP/KDP — task credentials, page tables, SELinux task state — is never written directly, and DEFEX is disabled by a kprobe in an unsigned vendor module.
  • Samsung fixed the two bugs separately. The report went in on June 17, 2026; the interface bug was fixed in the August release and the kernel bug in the September release, as CVE-2026-21102 / SVE-2026-3092.

Background

DualDAR stands for Knox Dual Data-at-Rest, an enterprise feature that puts an independent encryption layer over Android file-based encryption for work-profile data. The design assumes the outer layer may someday fail, so decryption has to happen inside a trusted daemon and apps may only ask that daemon to act on their behalf. The bug is in the asking.

Part one of OEMpocalypse, published August 31, 2026, argued that researchers should stop chasing generic Linux and chipset-driver bugs and target code the phone vendors wrote themselves. It rooted flagship devices from Samsung, Xiaomi and the Oppo/OnePlus/Realme group, and concluded that one chain per vendor travels well inside that vendor’s lineup but not across vendors. Part two takes the Samsung chain down to register level and confirms the thesis: neither exploited component comes from AOSP.

The chain

Stage one is the confused deputy in DualDARComnService.relayAsync. An app calls the knox_adapter_service Binder service; relayAsync hands the work to a background handler, and the original caller identity is lost in that handoff. By the time DualDARDaemonProxy.onMessage checks the UID, it sees system_server’s UID 1000 instead of the app’s. The app then sends LOAD_CLIENT_LIBRARY with CRYPTO_PATH pointing at a native library inside its own APK, dualdard calls dlopen on it, and the library constructor runs as UID 5250 in the dualdar_app domain. No CVE was assigned to this stage.

Stage two is the page use-after-free in /dev/dd, the part Samsung catalogued as CVE-2026-21102. The driver maps each inode’s metadata page into the daemon’s metadata_vma with remap_pfn_range inside __get_md_page, which creates a VM_PFNMAP mapping without taking a normal page reference. When the dd_info refcount reaches zero, dd_info_try_free calls __free_page and returns the page to the allocator without zapping the VMA, so the daemon keeps a readable and writable alias to freed memory.

Turning that alias into arbitrary physical access takes three moves. First, AF_UNIX datagram sk_buff fragment pages are sprayed and the matching socket pair is found through a cookie in the alias, then released. Second, the target kmalloc cache is filled with disposable anon_vma_name objects, after which resizing pipes with F_SETPIPE_SZ and writing into them allocates two-entry pipe_buffer arrays; the alias is checked for a plausible page, ops, flags and length. Forging page, offset and len redirects pipe reads and writes onto another physical page. An ops leak gives the kernel image base, LOAD_PA comes from scanning for init_uts_ns or from kimage_voffset, and struct page is computed as VMEMMAP_BASE + (pa >> 12) * 64.

With read and write in hand, privilege escalation is the cheap part. SELinux is made permissive either by clearing selinux_state.enforcing or, when that field is protected, by flipping the permissive_map bits for the dualdar_app, init and sec_system_init_shell domains. RKP/KDP guards credentials and page tables, so the chain never touches them: it patches the writable page-cache copy of libselinux.so and has init execute the shellcode inside it. DEFEX falls to an unsigned vendor module whose kprobe forces task_defex_enforce to allow the call. Cleanup restores the page cache, and the weaponized version also removes the DualDAR policy outright.

Affected devices

The four devices Calif rooted:

DeviceOS and kernelSoCState
Galaxy S23 SM-S911BAndroid 14 / 5.15Snapdragon 8 Gen 2Already rooted development unit
Galaxy S26 EU SM-S942BAndroid 16 / 6.12Exynos 2600Retail, bootloader locked
Galaxy S26 US SM-S942UAndroid 16 / 6.12Snapdragon 8 Elite Gen 5Retail, bootloader locked
Galaxy S26 Ultra S948BAndroid 16 / 6.12Snapdragon 8 Elite Gen 5Retail, bootloader locked

Static analysis also found both flaws in the Galaxy Z Fold8 (SM-F971B) firmware. Because the vulnerable code sits in shared Samsung framework and driver code, the write-up expects other Snapdragon and Exynos Galaxy S and Z devices to be affected, though none were tested one by one.

What others say

The official description and the demonstrated attack surface disagree in a way worth naming. NVD’s entry for CVE-2026-21102 reads: “Use after free in DualDAR prior to SMR Sep-2026 Release 1 allows local privileged attackers to execute arbitrary code with root privilege.” The CVSS 4.0 vector carries PR:H, privileges required high. Read alone, that suggests an attacker already running privileged code. The full chain starts with an app that holds nothing; the demo app requests INTERNET only to open a loopback terminal. The gap is the unnumbered stage-one bug, which is what connects a privileged system service to an ordinary app.

Reaction on Hacker News concentrated on part one, which drew 104 points and 63 comments. One camp read it as an indictment of the platform — “What a disaster for Android” — while another welcomed it: “End users love these for rooting.” When someone asked whether the exploit app would be released, the reply was that installing it without compiling from source would be unwise, and that a spare isolated device would be the only sensible place to try. The same chain is a vulnerability to a vendor and a feature to a hobbyist.

For users, the fix comes down to one action: install the patch. The Android SMS bug from early November follows the same logic — the repair covered Android 14 through 17 and left older devices exposed for good.

Samsung’s handling is also part of the story. It received the report on June 17, fixed the interface in the August release and the kernel bug in September — two months for both layers, quick by Android vendor standards. NVD published the CVE on September 9, after the fixes shipped, which is the right order.

Our take

For phone owners the advice is short: install the September 2026 security update or later, and do not install APKs from outside the store, especially anything advertising one-tap root. An app is the front door of this chain.

For enterprise mobility teams, the finding removes an assumption. DualDAR’s selling point is that work data stays encrypted even if the system is compromised, but the last step of this chain deletes the DualDAR policy, which means the isolation layer does not stop an attacker running as root. What actually protects the data is the device not being rooted in the first place.

For anyone building Android services or vendor frameworks, two structural lessons carry over. Any Binder service that forwards work asynchronously and checks permissions afterwards needs an answer to one question: in which context does the check run, and did the caller identity travel with the work? And any driver that maps a kernel page into userspace must revoke that mapping on the free path; remap_pfn_range taking no page reference is a detail many driver authors miss.

What remains unknown: whether the exploit will be released, and what severity Samsung assigned internally. The vendor’s monthly bulletin lists the CVE without the chain around it. On an S23 or S26 still running pre-August firmware both bugs are present and the chain is complete; with only one of them, it does not work — for now.