Exploit database

GH-d9f4a67978afce82252361bca8c7599f

dream-rainy/cve-2026-98260

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98260

61 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files7
dream-rainy/cve-2026-98260Revision 9d1f48ec0191

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

build.ps1

Suggested starting filePowerShell · 2,667 bytes
# build.ps1 -- build the CVE-2026-98260 exploit for aarch64 Android.
#
# usage:
#   pwsh -File build.ps1
#   pwsh -File build.ps1 -NdkBin "C:\...\ndk\29.0.14206865\toolchains\llvm\prebuilt\windows-x86_64\bin"

param(
    [string]$NdkBin = "",
    [string]$Out    = "",
    [string]$Device = "pudding"
)

$ErrorActionPreference = "Stop"

function Find-Clang {
    param([string]$Explicit)
    if ($Explicit) {
        $p = Join-Path $Explicit "clang.exe"
        if (Test-Path $p) { return $p }
        $p = Join-Path $Explicit "clang"
        if (Test-Path $p) { return $p }
        throw "clang not found in $Explicit"
    }
    $cand = @()
    if ($env:LOCALAPPDATA)   { $cand += (Join-Path $env:LOCALAPPDATA   "Android\Sdk\ndk") }
    if ($env:ANDROID_HOME)   { $cand += (Join-Path $env:ANDROID_HOME   "ndk") }
    if ($env:ANDROID_SDK_ROOT) { $cand += (Join-Path $env:ANDROID_SDK_ROOT "ndk") }
    if ($HOME)               { $cand += (Join-Path $HOME "Android/Sdk/ndk") }
    $cand += "/opt/android-sdk/ndk"
    $roots = $cand | Where-Object { (Test-Path $_) }

    foreach ($r in $roots) {
        $d = Get-ChildItem $r -Directory -ErrorAction SilentlyContinue |
             Sort-Object Name -Descending | Select-Object -First 1
        if (-not $d) { continue }
        foreach ($sub in @("toolchains\llvm\prebuilt\windows-x86_64\bin",
                           "toolchains\llvm\prebuilt\linux-x86_64\bin",
                           "toolchains\llvm\prebuilt\darwin-x86_64\bin")) {
            $p = Join-Path $d.FullName (Join-Path $sub "clang")
            if (Test-Path ($p + ".exe")) { return ($p + ".exe") }
            if (Test-Path $p) { return $p }
        }
    }
    $onPath = Get-Command clang -ErrorAction SilentlyContinue
    if ($onPath) { return $onPath.Source }
    throw "NDK clang not found; pass -NdkBin <dir with clang>"
}

$clang = Find-Clang -Explicit $NdkBin
Write-Host "[*] clang: $clang"

$def = "-DTARGET_OFFSETS_H=`"devices/$Device/offsets.h`""
if (-not $Out) { $Out = "timer-$Device" }

$clangArgs = @(
    "--target=aarch64-linux-android35",
    "-I", "src",
    $def,
    "-O2", "-std=gnu11", "-static",
    "-fno-stack-protector", "-fno-pic",
    "-ffunction-sections", "-fdata-sections",
    "src/timer.c", "-o", $Out,
    "-Wl,--gc-sections", "-Wl,-s", "-Wl,--build-id=none", "-Wl,-z,norelro",
    "-pthread"
)

& $clang @clangArgs
if ($LASTEXITCODE -ne 0) { throw "build failed (exit $LASTEXITCODE)" }

$f = Get-Item $Out
Write-Host ("[+] {0}  {1} bytes" -f $f.Name, $f.Length)
Write-Host "[*] deploy:"
Write-Host "      adb push $Out /data/local/tmp/a/ptimer"
Write-Host "      adb shell chmod 755 /data/local/tmp/a/ptimer"