LSPromise: from an untrusted Android app to kernel code execution without traditional memory corruption
LSPromise chains two Android flaws, CVE-2026-49881 and DirtyFrag, to gain kernel-level control without breaking the strongest defenses directly.
Published by LSPosed researchers in 2026, LSPromise combines CVE-2026-49881, a logic flaw in Android's Telecom service, with CVE-2026-43284, the kernel page-cache write primitive known as DirtyFrag. The authors demonstrated the chain on a Pixel 10 running the initial Android 17 release. They describe the chain as having a 100% success rate on vulnerable devices. That is a claim about its design, not a measured statistic: with no race to win and no heap state to prepare, there is nothing probabilistic to fail. The chain also avoids classic memory-corruption exploitation entirely. Instead, it combines several legitimate Android mechanisms and privileges in a way that allows an untrusted application to reach increasingly privileged parts of the system.
At a high level, the path is:
The first steps of the chain do not involve changing the SELinux domain of the attacking process. Instead, attacker-controlled code runs inside processes that are already running in the required domains. First, code executes inside system_server. The exploit then uses system_server's existing authority to make the already-running network_stack process execute attacker-controlled code.
Later stages do use normal SELinux domain transitions. Executing crash_dump64 moves execution into the crash_dump domain, while code already executing inside init later launches /vendor/bin/modprobe, producing a transition into the vendor_modprobe domain. The init stage is different: the exploit does not transition another process into the init domain. Instead, it causes attacker-controlled code to execute inside the already-running init process.
Stage 1 - Turning a class-existence check into system_server code execution
CVE-2026-49881 stems from a class-existence check added to InCallController that shipped in the stable Android 17 release. The bug was found twice. It was first reported by the researcher behind TLPE, a separate public proof of concept for the same vulnerability, on April 10, 2026, and Google confirmed it on May 6. The LSPromise authors found it independently and reported it on July 23, 2026, when Google told them it was a duplicate. TLPE also notes that the vulnerable logic had already appeared in Pixel builds starting with Android 16 QPR3 and in Android 17 beta builds before reaching the stable Android 17 AOSP release.
The framework attempted to verify that a declared InCallService class exists before trying to bind to it. The vulnerable path is reached during normal Telecom processing when InCallController enumerates available InCallService components. TLPE uses the public transactional-calls API TelecomManager.addCall() as a deterministic way to trigger that processing. The application still passes Telecom's normal authorization and consistency checks: it holds MANAGE_OWN_CALLS, uses a PhoneAccountHandle associated with its permitted user context, supplies a registered and enabled account, and presents a calling package consistent with its Binder UID. CVE-2026-49881 does not bypass these checks. Instead, a legitimate call operation causes Telecom to reach the vulnerable downstream service-discovery code. On the affected builds, the required MANAGE_OWN_CALLS permission is a normal permission and does not require a runtime permission prompt. An attacker-controlled service that advertises the expected InCallService intent and sets the android.telecom.CLASS_EXISTENCE_CHECK metadata can therefore reach the vulnerable serviceClassExists() logic.
The relevant part of serviceClassExists() is:
That call causes Android to construct the application's loading environment, which loads and invokes the attacker-controlled AppComponentFactory. Because this operation takes place inside system_server, the attacker's Java code executes in the system_server process context.
Google's fix for CVE-2026-49881 removed the vulnerable serviceClassExists() logic. The issue arises because createPackageContextAsUser() is used with CONTEXT_INCLUDE_CODE and CONTEXT_IGNORE_SECURITY, after which getClassLoader() enters application-controlled class-loading behavior inside the privileged process. Google's September 2026 Android Security Bulletin lists CVE-2026-49881 as a high-severity elevation-of-privilege issue affecting Android 17.
The relevant sequence inside Android 17's LoadedApk, when the package ClassLoader has not already been initialized, is:
The implementation itself shows why the later Class.forName(..., false, ...) protection is ineffective. createAppFactory() loads the application-specified AppComponentFactory and instantiates it with newInstance(), which invokes application-controlled construction code. Android then calls the factory's instantiateClassLoader() method. Application code can therefore execute before the later Class.forName() check is reached.
TLPE independently demonstrates this path in practice. Its captured stack trace shows attacker-controlled EvilFactory.instantiateClassLoader() executing through LoadedApk.getClassLoader() after being reached from InCallController.serviceClassExists() inside system_server.
The vulnerability is especially serious because the affected Telecom code runs inside system_server. The Android 17 Telecom package manifest declares:
As a result, attacker-controlled Java executes inside system_server rather than in the original application process, with system_server's UID, Binder authority and framework privileges.
Yet system_server remains confined. Android's system_server SELinux policy deliberately restricts native-execution paths, including loading executable content from ordinary /data locations and anonymous executable mappings. CVE-2026-49881 therefore gives the attacker powerful Java execution inside one of Android's most privileged userspace processes, but it does not immediately provide unrestricted native code execution or kernel access. The exploit needs another step to reach a process that combines the required native-code environment with the networking privileges needed for DirtyFrag.
CVE-2026-49881 beyond LSPromise
LSPromise uses CVE-2026-49881 as the first step toward kernel compromise, but the vulnerability is powerful even without DirtyFrag. TLPE demonstrates a different post-exploitation path after obtaining code execution inside system_server.
TLPE explicitly credits Michał Bednarski's AbxOverflow research for CVE-2024-34740 as inspiration for its persistence technique. The distinction between the two techniques is important. CVE-2024-34740 itself is an integer overflow in Android's BinaryXmlSerializer that Bednarski develops into a system_server file-write primitive. He cannot overwrite /data/system/packages.xml directly, so he writes a modified copy as /data/system/packages-backup.xml, which the system reads in preference to the original on the next start. That modified package state makes an attacker-controlled signing identity trusted for a privileged shared UID such as android.uid.system.
TLPE does not need to reuse the Binary XML vulnerability because CVE-2026-49881 has already provided direct code execution inside system_server. Instead, TLPE uses that privileged execution to modify PackageManager's internal signing state for android.uid.system, adding its own signing identity to the shared UID's accepted signing history.
TLPE then reinstalls a variant of the application declaring:
Because the manipulated signing state now satisfies PackageManager's shared-UID checks, the application can obtain persistent, privileged execution. TLPE reports that the resulting state has persisted in packages.xml and can survive an OTA, including installation of the update that fixes CVE-2026-49881 itself.
This persistence technique is not part of LSPromise, but it demonstrates an important point: CVE-2026-49881 is already a significant security boundary failure by itself. LSPromise uses the resulting system_server execution as a steppingstone toward kernel compromise, while TLPE demonstrates that the same primitive can instead be turned into persistent privileged userspace access.
Stage 2 - Lateral movement into network_stack
DirtyFrag is the name for a pair of vulnerabilities. CVE-2026-43500 depends on RxRPC, which is disabled in Android's generic kernels. CVE-2026-43284 is the variant usable on Android, and it requires the Linux XFRM/ESP networking path.
Ordinary application domains are denied access to the privileged netlink_xfrm_socket interface by SELinux. Only system_server, network_stack and netd have the necessary XFRM Netlink permissions, so an attacker must first compromise one of those processes.
However, system_server is restricted from loading the attacker's native code in the form needed for the kernel stage, so the exploit moves into network_stack, which combines the required XFRM permissions with the ability to load native code from the attacker's APK. LSPromise therefore treats system_server as a control plane rather than as the final userspace process from which the kernel exploit will run.
When Android starts an application process, system_server receives and stores that process's IApplicationThread Binder interface. Despite the name, IApplicationThread is not a Java thread object. It is a Binder interface through which system_server instructs an application process to perform framework operations such as loading application state and handling lifecycle events. Possession of another process's IApplicationThread Binder handle therefore provides a powerful capability: it allows the holder to issue commands that the target process normally expects to originate from the Android system.
Because the attacker is already executing inside the same process as ActivityManager, reflection can be used to reach ActivityManager's internal state. ActivityManager's ProcessList tracks the relevant ProcessRecord objects, and each ProcessRecord contains the process's IApplicationThread interface, available through p.getThread().
The exploit retrieves the handle associated with com.android.networkstack and uses it to issue attacker-controlled commands to that already-running process. Android 17 added checks intended to prevent non-system UIDs from directly invoking certain IApplicationThread methods, but those checks do not stop this chain because the calls originate from attacker-controlled code already executing inside system_server. The LSPromise author used the same technique in an earlier exploit, TransitionPlayer (CVE-2026-0091), which explains it in more detail.
This is lateral movement through Android's process-management architecture, not a conventional SELinux domain transition:
SELinux never transforms system_server into network_stack. Instead, the exploit abuses system_server's legitimate authority to control a process that already resides in the desired SELinux domain.
Stage 3 - DirtyFrag and the page-cache modification primitive
Once native execution is established inside network_stack, the chain reaches CVE-2026-43284. DirtyFrag is not a classic buffer overflow, use-after-free or type confusion. It is a low-level data-ownership failure involving shared memory pages.
Linux can splice pages from a pipe directly into an skb through MSG_SPLICE_PAGES, avoiding an additional memory copy. An skb, short for sk_buff or socket buffer, is the Linux kernel data structure used to represent a network packet as it moves through the networking stack.
When pages are attached to an skb in this way, the kernel needs to remember that the packet data may still be shared with another owner. TCP correctly marks these fragments as shared, but the IPv4 and IPv6 UDP datagram splice paths failed to do so.
Because that shared state was missing, ESP could treat the fragment as though it owned the underlying memory exclusively. Its fast-path checks, based on !skb_cloned() and the absence of a frag_list, therefore allowed it to skip copy-on-write and operate directly on the shared page.
This creates a more controlled write primitive than simply saying that ESP "corrupts the page cache." In the ESP+ESN path, crypto_authenc_esn_decrypt() performs a four-byte store while rearranging the high-order sequence-number bits. The attacker can control the 32-bit value involved through the XFRM replay-state field XFRMA_REPLAY_ESN_VAL.seq_hi, which is also configured directly by the public DirtyFrag exploit.
The attacker can also influence where the page-cache-backed data appears in the scatter-gather layout through the splice arrangement. Importantly, the relevant store occurs before authentication ultimately reports failure. As a result, even if the cryptographic operation later returns -EBADMSG, the page-cache-backed modification has already occurred and is not automatically reversed.
The upstream fix addresses the ownership mistake from both directions. Datagram splice paths now mark externally backed fragments using SKBFL_SHARED_FRAG, while ESP avoids the unsafe in-place path when that shared-fragment state is present and falls back to copy-on-write behavior.
A precise characterization of DirtyFrag is therefore a page-cache modification primitive created by incorrect ownership tracking of shared skb fragments. Because the primitive does not require corrupting a kernel object, discovering a kernel address, constructing a ROP chain or winning a race condition, mitigations such as KASLR, MTE and CFI do not directly prevent this attack.
Stage 4 - From page-cache writes to privileged execution
Stock Android does not provide a traditional setuid-root binary that can simply be overwritten. LSPromise therefore adapts an approach previously demonstrated by DirtyPipe-Android: use a page-cache modification primitive to alter code or data that will later be consumed by processes running in progressively more useful SELinux contexts.
Three important library files are modified:
The three files serve different purposes in the chain. libc++.so is used to gain code execution inside the already-running init process. libc.so is used later to gain attacker-controlled execution inside a process running in the vendor_modprobe domain when /vendor/bin/modprobe starts. Finally, /vendor/lib64/libstagefright_aidl_bufferpool2.so provides a vendor_file-labeled object whose page-cache contents can be replaced with the attacker's kernel-module image.
Before that vendor library can be modified, the chain has to bridge another SELinux permission boundary. network_stack has the XFRM networking authority required for the DirtyFrag primitive, but it cannot directly open the required vendor_file target. The crash_dump SELinux domain, on the other hand, has the cross-system/vendor file access required by Android's crash-handling infrastructure.
The chain first modifies the page-cache contents backing:
/apex/com.android.runtime/bin/crash_dump64
Executing the modified binary produces a genuine SELinux domain transition into crash_dump. From inside that domain, attacker-controlled code can open:
/vendor/lib64/libstagefright_aidl_bufferpool2.so
The public LSPromise description establishes why the crash_dump stage is necessary: the vendor target cannot be accessed directly from the network_stack context used for DirtyFrag, while the crash_dump domain can access it.
The public write-up does not, however, spell out the exact cross-context descriptor or IPC handoff used between these steps. It would therefore be too specific to claim that LSPromise necessarily uses a particular mechanism such as SCM_RIGHTS without confirming that directly from the implementation. At the architectural level, the requirement is clear: crash_dump supplies access to the vendor target, while the network_stack/XFRM path supplies the DirtyFrag page-cache modification primitive.
Using those capabilities together, the page-cache contents backing libstagefright_aidl_bufferpool2.so are modified so that they contain the attacker's kernel-module image while the underlying filesystem object retains its original vendor_file SELinux label.
This distinction is important. The exploit changes the data represented by the cached pages, not the SELinux label attached to the filesystem object.
The same page-cache primitive is also used to prepare the modified libc++.so and libc.so required by the following stages.
Stage 5 - From init to kernel module execution
The next goal is execution inside init. The exploit modifies the page-cache contents of libc++.so and then creates and destroys an orphan process. That sequence causes attacker-controlled code to execute inside the already-running init process, which runs as UID 0.
This is not a transition of another process into the init SELinux domain. The exploit has caused code to execute inside the actual existing init process.
From init, the exploit executes:
/vendor/bin/modprobe
Android's SELinux policy permits execution from init through the vendor modprobe executable to transition into the vendor_modprobe domain. AOSP defines the init to vendor_modprobe domain transition, grants the process the Linux sys_module capability, and permits module_load operations on vendor_file objects through the SELinux system security class.
This is where the earlier modification of libc.so becomes important. When /vendor/bin/modprobe starts, it loads the modified libc.so. The modification causes attacker-controlled code to execute inside the new process after that process has entered the vendor_modprobe domain.
The exploit now has code execution inside a domain that is legitimately authorized to load kernel modules. The attacker-controlled payload opens the previously prepared:
/vendor/lib64/libstagefright_aidl_bufferpool2.so
Its page-cache contents contain the attacker's kernel-module image, but the filesystem object still carries its original vendor_file SELinux label.
The payload then passes the open file descriptor to finit_module(), asking the kernel to load the contents represented by that file as a kernel module. This final technique follows the same general strategy documented by DirtyPipe-Android, where execution inside vendor_modprobe is used to load module contents from an appropriately labeled vendor object.
From SELinux's point of view, the operation is permitted: code executing inside vendor_modprobe, a domain authorized to load kernel modules, is requesting a module_load operation for an object carrying the allowed vendor_file type. The data represented by that object has changed, but the label used for the authorization decision has not.
The kernel therefore accepts and executes the attacker-controlled module image. At this point, attacker-supplied code is running in kernel context. The published LSPromise implementation uses this capability to place SELinux into permissive mode and activate KernelSU.
Why GKI module signing does not automatically stop this step
Android's loadable-kernel-module documentation explains an important difference between Android's GKI model and a generic Linux configuration that requires a cryptographic signature on every loadable module.
Android states that individual module signing is not used for GKI vendor modules as the mechanism for establishing their authenticity. On devices using verified boot, vendor modules normally obtain that integrity guarantee by residing on partitions protected by dm-verity. Android's GKI model can still allow unsigned modules to load, provided they stay within the permitted symbol surface.
Compatibility is separately constrained by Android's Kernel Module Interface. Vendor modules are expected to use the allowed KMI symbol surface, and modules that require unavailable non-KMI symbols can fail to load.
DirtyFrag does not rewrite the verified vendor blocks on persistent storage. Instead, the exploit changes the in-memory page-cache representation of an existing vendor object after that object has been read. The underlying filesystem object and its SELinux label remain unchanged. Because the modification exists only in memory, it lasts until the affected pages are evicted or the device reboots.
The module stage therefore does not inherently require an unlocked bootloader, test signing keys, or disabling a generic CONFIG_MODULE_SIG_FORCE policy. It still requires a module compatible with the target kernel and Android's GKI/KMI restrictions, but those restrictions do not prevent attacker-supplied instructions from executing in kernel context once such a module has successfully loaded.
Composition, reliability and lessons
LSPromise is notable not because either vulnerability is sufficient on its own, but because the two can be combined with several legitimate Android mechanisms to form a complete privilege-escalation chain.
CVE-2026-49881 gives the attacker code execution inside system_server, but SELinux restrictions make it difficult to run the native code required for the kernel stage directly from that process. However, system_server also hosts ActivityManager, which gives it access to IApplicationThread interfaces used to control application processes.
The exploit uses that authority to reach network_stack, which has the XFRM permissions required by DirtyFrag. CVE-2026-43284 then provides the page-cache modification primitive, but Android does not have an obvious setuid binary that can simply be modified to obtain root.
The chain therefore continues through several Android components with useful existing privileges. crash_dump provides access to vendor targets that network_stack cannot directly open. The network_stack/XFRM path supplies the DirtyFrag primitive required to modify their page-cache-backed contents. init runs as UID 0 and can launch vendor tooling, while vendor_modprobe is explicitly authorized to load kernel modules from appropriately labeled vendor objects.
The exploit succeeds by composing these existing permissions and trust relationships in a way Android was not designed to expect from an untrusted application.
The authors' claim of a 100% success rate is best understood in comparison with traditional race- or corruption-based kernel exploits: there is no probabilistic heap state to prepare and no race condition to win. However, this does not mean that the exploit will work on every Android device.
The complete chain depends on the exact kernel build and included fixes, the Android framework version, the device's SELinux rules, the location and versions of system libraries and binaries, and other vendor-specific differences. The researchers tested the complete chain on a Pixel 10 running the initial Android 17 release. They explicitly note that it does not work on Pixel 6a, and that it may also fail on other devices using 6.1.xxx-android14 kernel trees because of another bug in those kernels.
For that reason, it is more accurate to describe LSPromise as deterministic on supported vulnerable configurations rather than universally reliable.
CVE-2026-49881 was rated high severity and fixed in the September 2026 Android Security Bulletin. Google's bulletin lists it as an elevation-of-privilege vulnerability affecting Android 17 and also lists CVE-2026-49881 under the Telephonycore subcomponent in the Google Play system updates section.
CVE-2026-43284 had already been fixed in the upstream Linux kernel in May 2026, but the fix took longer to reach Android. When LSPromise was published, its authors noted that AOSP and Pixel devices, apart from those running beta QPR builds, were still vulnerable. Google's November 2026 Android Security Bulletin lists CVE-2026-43284 as a high-severity elevation-of-privilege issue in the kernel's Networking subcomponent, addressed at the 2026-11-05 security patch level. The public DirtyFrag research and exploit document the splice/ESP ownership problem that produces the page-cache modification primitive.
Whether a device is still vulnerable therefore depends on more than the Android version displayed in Settings. The Telecom fix may be delivered through the relevant Android or Google Play system update, while DirtyFrag depends on the exact kernel and backported fixes shipped by the device manufacturer. Fixing either vulnerability breaks the published LSPromise chain, but both remain independently important security issues.
The most instructive aspect of LSPromise may be its first step. A framework developer wanted to answer a seemingly harmless question:
Does this application's service class actually exist?
But the implementation answered that question by loading the application's code environment inside one of Android's most trusted processes. From that point, Android's own architecture supplied the remaining stepping stones: Binder capabilities, specialized SELinux domains, crash-handling access, vendor separation and controlled kernel-module loading.
The episode illustrates a broader security principle: a security boundary can fail even when every component after the initial mistake behaves according to its intended permissions. Modern exploit mitigations remain extremely valuable. LSPromise does not demonstrate that MTE, CFI, KASLR or SELinux are ineffective.
Instead, it demonstrates a different problem. When an attacker can transform trusted framework functionality into execution inside an already privileged context, and then combine several legitimate authorities across subsystem boundaries, some of the platform's strongest exploit mitigations may never need to be attacked directly.
Sometimes the cleanest path through a hardened system is not to break its strongest door, but to find a sequence of doors the system itself is already authorized to open.
Demo
A demo movie of the complete LSPromise exploit chain was published by the researchers.
Subscribe to the Jamf Blog
Have market trends, Apple updates and Jamf news delivered directly to your inbox.
To learn more about how we collect, use, disclose, transfer, and store your information, please visit our Privacy Policy.