← Lab /Security & privacy

Parallel Java-Kotlin implementations expose 37 vulnerable divergences in Android

Parallel Java and Kotlin implementations in AOSP contain security-relevant behavioral divergences, leading to exploitable bugs

Security & privacy arXiv 5 Jun 2026 Measurement Prototype evidence Threat model

Published as “Lost in Migration: Exposing Android Framework Vulnerabilities in Parallel Java-Kotlin Implementations”

Why it matters

The study shows that language-migration paths can silently introduce security regressions, so platform vendors should enforce strict migration policies and automated equivalence testing.

Summary

ParaDroid uncovered security flaws hidden in parallel Java-Kotlin implementations in the Android framework, flagging 37 potentially vulnerable divergences and leading to three confirmed vulnerabilities (two high-severity CVEs). The evidence comes from an evaluation on AOSP Android 14-16 where 329 parallel method pairs and 372 divergences were identified, but only a subset proved exploitable.

What they found 2

  1. ParaDroid identified 329 parallel method pairs and 37 vulnerable divergences.

    “ParaDroid identified 329 parallel method pairs and 37 vulnerable divergences.”

  2. Three vulnerabilities and two bugs have been confirmed, and two CVE IDs have been assigned.

    “Three vulnerabilities and two bugs have been confirmed, and two CVE IDs have been assigned.”

Caveats 5

  • Only three of the 37 flagged divergences were confirmed as actual vulnerabilities, indicating a high false-positive rate.
  • The first disclosed vulnerability (information disclosure) was rated Low Severity and requires local shell access, limiting its practical impact.
  • Although LLMs occasionally produce non-deterministic outputs, combining rich context with consensus mechanisms filters out transient inconsistencies.
  • potential inaccuracies primarily manifest as conservative false positives.
  • We mitigate these remaining inaccuracies through manual verification.

What’s new here 3

  • Systematic identification of parallel Java-Kotlin method pairs in the Android OS codebase.
  • A cross-language analysis pipeline that normalizes bytecode, builds language-agnostic Unified Execution Graphs, and uses LLM reasoning to spot semantic divergences.
  • Discovery of real CVEs stemming from migration-induced bugs, a threat surface not examined by prior Android differential-analysis work.

Threat model stated by the source

Adversarymalicious app installed on a victim Android device
Capabilityexecute code locally or remotely and invoke system services (e.g., via ADB or app calls)
Assumesdevice runs a vulnerable Java implementation path; attacker can trigger the divergent method through available interfaces