Wednesday, May 7, 2025
HomeCyber Security NewsKernelSnitch: Uncovering a New Side-Channel Attack on Data Structures

KernelSnitch: Uncovering a New Side-Channel Attack on Data Structures

Published on

SIEM as a Service

Follow Us on Google News

Researchers at Graz University of Technology have uncovered a groundbreaking software-based side-channel attack, KernelSnitch, which exploits timing variances in Linux kernel data structures.

Unlike hardware-dependent attacks, KernelSnitch targets hash tables, radix trees, and red-black trees, enabling unprivileged attackers to leak sensitive data across isolated processes, as per a report by a Researcher Published on Github.

The Vulnerability: Kernel Data Structures as Silent Leakers

Operating systems rely on dynamic data structures like hash tables and trees to manage metadata for user-space locks, timers, and inter-process communication (IPC).

- Advertisement - Google News

KernelSnitch exploits a critical architectural oversight: the time required to access these structures depends on their occupancy (number of elements).

By measuring syscall execution times, attackers infer occupancy levels and extract secrets.

How KernelSnitch Works

  1. Timing Measurement: Attackers trigger syscalls (e.g., futex, msgget) that interact with kernel structures.
  2. Occupancy Inference: Longer syscall durations indicate higher occupancy due to iterative searches (e.g., traversing linked lists in hash buckets).
  3. Amplification: Minimal timing differences (as low as 8 CPU cycles) are magnified via cache thrashing (flushing CPU caches to exacerbate memory latency) or structure manipulation (artificially inflating occupancy).
KernelSnitch exploits variable access times in hash tables. Each bucket’s linked list length affects syscall duration, leaked via timestamp comparisons.
KernelSnitch exploits variable access times in hash tables. Each bucket’s linked list length affects syscall duration, leaked via timestamp comparisons.

Three Real-World Exploits Demonstrated

1. Covert Channel (580 kbit/s Transmission)

Malicious processes communicate by modulating hash bucket occupancy. On an Intel i7-1260P, KernelSnitch achieved 580 kbit/s with 2.8% error rates using the futex subsystem.

2. Kernel Heap Pointer Leak

By forcing hash collisions, attackers deduce secret kernel addresses (e.g., mm_struct) used in hash functions. This enables precise heap manipulation for privilege escalation, leaking pointers in under 65 seconds.

3. Website Fingerprinting (89% Accuracy)

Monitoring Firefox’s futex activity during webpage loads created unique timing fingerprints. A convolutional neural network (CNN) identified sites from the Ahrefs Top 100 list with 89.5% F1 score.

Why KernelSnitch Matters

  • Hardware-Agnostic: Unlike Spectre or Meltdown, KernelSnitch exploits software design flaws, bypassing hardware mitigations.
  • Broad Impact: All major OSes using dynamic kernel structures are vulnerable. Tested on Linux 5.15–6.8.
  • Stealth: Requires no privileges or shared memory, evading existing sandboxes.

Mitigation Challenges

Fixing KernelSnitch demands fundamental changes:

  1. Constant-Time Structures: Eliminate occupancy-dependent operations (e.g., precompute worst-case traversal steps).
  2. Namespace Isolation: Restrict structure sharing across security domains.
  3. Randomized Hashing: Obfuscate kernel address inputs in hash functions.

As co-author Lukas Maar noted, “Constant-time coding is impractical for general-purpose kernels. We need architectural shifts, not patches.”

KernelSnitch exposes a pervasive blind spot in OS security: performance optimizations that inadvertently create side channels.

With PoC code already public, developers must prioritize structural hardening over incremental fixes.

As kernel-level attacks grow sophisticated, rethinking core design paradigms becomes urgent—before exploitation eclipses mitigation.

Free Webinar: Better SOC with Interactive Malware Sandbox for Incident Response, and Threat Hunting - Register Here

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

Latest articles

Top Ransomware Groups Target Financial Sector, 406 Incidents Revealed

Flashpoint analysts have reported that between April 2024 and April 2025, the financial sector...

Agenda Ransomware Group Enhances Tactics with SmokeLoader and NETXLOADER

The Agenda ransomware group, also known as Qilin, has been reported to intensify its...

SpyCloud Analysis Reveals 94% of Fortune 50 Companies Have Employee Data Exposed in Phishing Attacks

SpyCloud, the leading identity threat protection company, today released an analysis of nearly 6...

PoC Tool Released to Detect Servers Affected by Critical Apache Parquet Vulnerability

F5 Labs has released a new proof-of-concept (PoC) tool designed to help organizations detect...

Resilience at Scale

Why Application Security is Non-Negotiable

The resilience of your digital infrastructure directly impacts your ability to scale. And yet, application security remains a critical weak link for most organizations.

Application Security is no longer just a defensive play—it’s the cornerstone of cyber resilience and sustainable growth. In this webinar, Karthik Krishnamoorthy (CTO of Indusface) and Phani Deepak Akella (VP of Marketing – Indusface), will share how AI-powered application security can help organizations build resilience by

Discussion points


Protecting at internet scale using AI and behavioral-based DDoS & bot mitigation.
Autonomously discovering external assets and remediating vulnerabilities within 72 hours, enabling secure, confident scaling.
Ensuring 100% application availability through platforms architected for failure resilience.
Eliminating silos with real-time correlation between attack surface and active threats for rapid, accurate mitigation

More like this

Top Ransomware Groups Target Financial Sector, 406 Incidents Revealed

Flashpoint analysts have reported that between April 2024 and April 2025, the financial sector...

Agenda Ransomware Group Enhances Tactics with SmokeLoader and NETXLOADER

The Agenda ransomware group, also known as Qilin, has been reported to intensify its...

PoC Tool Released to Detect Servers Affected by Critical Apache Parquet Vulnerability

F5 Labs has released a new proof-of-concept (PoC) tool designed to help organizations detect...