(CVE-2024-34594) Samsung Galaxy Kernel Information Disclosure via Debug proc Entry Leading to KASLR Bypass
A debug proc entry in Samsung Galaxy kernels exposed kernel memory addresses to any local unprivileged user. An attacker could read these addresses to bypass KASLR, weakening other kernel exploits.
starlabs.sg
Published on starlabs.sg
The Samsung Galaxy S22 is a high-end smartphone running Samsung’s custom Android kernel. Samsung’s kernel includes a Real-time Kernel Protection (RKP) subsystem designed to enforce memory integrity at runtime.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a debug proc entry in the RKP test driver was left accessible and printed kernel pointers without restricting who could read it.
Impact
A local unprivileged attacker could read kernel memory addresses, bypassing KASLR; the CVSS vector shows confidentiality impact only, with no integrity or availability impact.
What the attacker needed
Local access to the device; unprivileged user account on the device
The fix
The issue was fixed in the SMR Jul-2024 Release 1 security update.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
KASLR is a defence that loads the kernel at a random address so attackers cannot easily jump to known code. Here a debug file in the proc filesystem leaked those addresses to any local user, so the randomisation could be worked out. The attacker still needs to run code on the phone, but this leak makes other attacks much easier.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.