Cyber Security News

Samsung KNOX Kernel Flaw Exposes Galaxy Devices to Memory Corruption Attacks

Samsung has addressed a critical kernel vulnerability in its KNOX security framework that puts millions of Galaxy devices at risk of memory-corruption attacks, potentially allowing full device compromise.

This issue, tracked as CVE-2026-20971, was discovered by LucidBit Labs and affects a wide range of Samsung smartphones released over the past eight years, including devices from the Galaxy S9 to the latest S25 series, as well as A-series devices using both Exynos and Qualcomm chipsets.

Samsung KNOX Kernel Flaw

The vulnerability is in Samsung’s proprietary Process Authenticator (PROCA) subsystem, a fundamental component of the KNOX platform that enforces kernel-level process integrity.

PROCA depends on the FIVE (File Integrity Verification Engine) framework, which tracks and manages the trust states of processes and files. However, researchers discovered a use-after-free (UAF) condition in the kernel’s lifecycle handling of task_integrity objects associated with running processes.

The core of the problem lies in unsafe access to integrity objects through procfs interfaces exposed under /proc/[pid]/integrity/. Kernel handlers retrieve a pointer to a process’s integrity structure using a specific macro.

#define TASK_INTEGRITY(task) ((task)->integrity)

This macro returns a raw pointer without incrementing the reference count, even though the object is managed through reference counting. During process execution changes, specifically execve(), the kernel replaces the existing task_integrity object with a new one and frees the old instance:

old_tint = TASK_INTEGRITY(task);

tint = task_integrity_alloc();

task_integrity_assign(task, tint);

task_integrity_put(old_tint); // frees old object

Because the Linux kernel is preemptive, a race condition arises when one thread accesses the integrity object. At the same time, another triggers its replacement and deallocation. If timed precisely, a thread may continue operating on a freed object, leading to a classic UAF scenario.

LucidBit demonstrated that this flaw is reachable from unprivileged applications, significantly raising its severity. By exploiting narrow race windows, attackers can achieve multiple memory corruption primitives.

One such primitive involves leaking kernel memory via the proc_integrity_value_read() handler, which reads from the freed structure.

seq_printf(m, "%x\n", task_integrity_user_read(TASK_INTEGRITY(task)));

If the freed memory is reallocated with attacker-controlled data, this results in a controlled information-disclosure primitive that can be used to bypass protections such as Kernel Address Space Layout Randomization (KASLR).

The researchers also explored more advanced exploitation paths, including a potential arbitrary function call via the proc_integrity_reset_file() handler. This path leverages dangling pointers to kernel file structures and indirect function calls such as:

path->dentry->d_op->d_dname(...)

However, modern Android kernels employ Control Flow Integrity (CFI), which restricts indirect calls to valid function signatures. This mitigation significantly reduces the exploitability of such primitives by preventing arbitrary control flow redirection.

Another viable primitive arises from the proc_integrity_label_read() handler, where spinlock operations on freed memory can result in constrained write primitives.

Attackers Expose device (Source: Lucid Bit address)

Although limited, these writes can potentially corrupt adjacent kernel structures, enabling further exploitation chains such as heap overflows or additional UAF conditions.

Despite the complexity of exploitation, requiring precise timing, heap manipulation, and cache reallocation techniques, the vulnerability is notable for its broad attack surface and accessibility from untrusted applications.

The research also highlights how security mechanisms like KNOX and FIVE, while designed to enhance protection, can inadvertently introduce new attack vectors due to complex state management and insufficient lifetime handling.

Samsung addressed CVE-2026-20971 in its January 2026 Android security update following responsible disclosure. Users are strongly advised to ensure their devices are updated to the latest security patch level to mitigate potential exploitation risks.

This case underscores a recurring theme in modern mobile security: as defensive systems grow more sophisticated, their internal complexity can itself become a target for attackers, especially when subtle memory management flaws are overlooked.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Storm-2603 Hackers Exploit SharePoint and Abuse Cloudflare Tunnel to Hide Remote Access

A December intrusion to Storm-2603, the China-based group Microsoft ties to Warlock ransomware. The attackers…

9 minutes ago

OpenSSH sshole Flaw Allows Hackers to Log Into Password-Disabled Linux Accounts Using 257-Character Passwords

A decade-old authentication bypass in OpenSSH on musl-based Linux lets attackers log into accounts that…

12 minutes ago

New GhostMap Android Vulnerability Can Crash Phones Permanently Without Opening an App or Granting Permissions

Bitdefender researchers have revealed a vulnerability called GhostMap that affects Android devices. This vulnerability can…

21 minutes ago

Microsoft Paint Vulnerability Allows Hackers to Execute Malicious Code Remotely Without User Interaction

Microsoft has announced a vulnerability in Windows Paint that could let unauthenticated attackers execute malicious…

45 minutes ago

ARTEX AI Framework Linked to Bank Breaches and Cloud Attacks Found Exposed Across Hundreds of Servers

An autonomous penetration-testing framework linked to South Korean banking breaches and cloud supply-chain attacks is…

1 hour ago

Shopify Makes IP Allowlisting Mandatory for All Public Apps to Prevent Stolen API Token Abuse

Shopify is making IP allowlisting mandatory for all public apps to limit abuse of stolen…

1 hour ago