The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-22056

CVE-2025-22056: Linux Kernel Buffer Overflow Vulnerability

CVE-2025-22056 is a buffer overflow vulnerability in the Linux Kernel netfilter subsystem that causes heap out-of-bounds writes. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-22056 Overview

CVE-2025-22056 is a heap out-of-bounds write vulnerability in the Linux kernel's netfilter subsystem, specifically within the nft_tunnel module. The flaw exists in the parsing logic for handling multiple NFTA_TUNNEL_KEY_OPTS_GENEVE attributes, where incorrect pointer arithmetic leads to memory corruption. When processing geneve_opt structures, the code erroneously performs type conversion before pointer addition, causing subsequent writes to occur outside the allocated heap buffer.

This vulnerability allows a local attacker with low privileges to potentially escalate privileges, execute arbitrary code in kernel context, or cause system instability through memory corruption.

Critical Impact

Local attackers can exploit this heap out-of-bounds write to corrupt kernel memory, potentially achieving privilege escalation or arbitrary code execution in kernel space.

Affected Products

  • Linux Kernel (multiple versions with netfilter/nftables support)
  • Systems using GENEVE tunnel encapsulation with nftables
  • Debian Linux (see LTS announcements for affected versions)

Discovery Timeline

  • April 16, 2025 - CVE-2025-22056 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-22056

Vulnerability Analysis

The vulnerability resides in the nft_tunnel_obj_init function within the netfilter nftables tunnel implementation. When parsing multiple GENEVE tunnel option attributes (NFTA_TUNNEL_KEY_OPTS_GENEVE), the kernel must place each geneve_opt structure compactly in memory. The parsing logic calculates the position for the next geneve_opt by performing pointer arithmetic.

The root cause is a type confusion error in the pointer arithmetic. The code incorrectly casts the pointer type before performing the addition operation, which changes the arithmetic scale factor. Instead of advancing by the correct byte offset (char * arithmetic), the pointer advances by multiples of the structure size, causing writes to land outside the allocated buffer.

The KASAN (Kernel Address Sanitizer) trace from the bug report shows a write of 124 bytes occurring at an out-of-bounds address during the memcpy operation within nft_tunnel_obj_init. This confirms heap corruption occurring during the initialization of tunnel objects.

Root Cause

The type confusion occurs in pointer addition operations within the geneve option parsing code. In C, pointer arithmetic is scaled by the size of the pointed-to type. When handling geneve_opt structures that should be placed compactly, the code must use char * arithmetic (1-byte scaling) to calculate byte offsets correctly.

The vulnerable code performs the type cast before the addition, resulting in pointer arithmetic scaled by the geneve_opt structure size instead of single bytes. This causes the calculated next position to be far beyond the intended location, leading to heap out-of-bounds writes when subsequent structures are copied into memory.

Attack Vector

Exploitation requires local access to the system with privileges sufficient to configure netfilter/nftables rules. An attacker would:

  1. Create a netlink message targeting the nftables subsystem
  2. Include a tunnel object with multiple NFTA_TUNNEL_KEY_OPTS_GENEVE attributes
  3. Trigger the vulnerable parsing path in nf_tables_newobj
  4. The type confusion causes heap corruption when processing subsequent geneve options

The attack surface is limited to users with CAP_NET_ADMIN capability or equivalent permissions to configure netfilter rules, though unprivileged users in certain namespace configurations may also be able to trigger the vulnerability.

Detection Methods for CVE-2025-22056

Indicators of Compromise

  • KASAN reports indicating slab-out-of-bounds errors in nft_tunnel_obj_init
  • Kernel oops or panics related to netfilter or nftables tunnel processing
  • Unexpected system crashes when processing GENEVE tunnel configurations
  • Memory corruption symptoms in kernel heap allocations

Detection Strategies

  • Enable KASAN (Kernel Address Sanitizer) in development/testing environments to detect heap corruption
  • Monitor kernel logs for nftables-related errors, particularly in tunnel object initialization
  • Deploy kernel audit rules to track netfilter configuration changes
  • Use endpoint detection solutions that monitor for kernel exploitation attempts

Monitoring Recommendations

  • Configure syslog alerting for kernel KASAN reports and memory error messages
  • Monitor for unusual nftables rule modifications, especially those involving tunnel objects
  • Track processes making netlink syscalls to the netfilter subsystem
  • Implement kernel live patching infrastructure for rapid vulnerability response

How to Mitigate CVE-2025-22056

Immediate Actions Required

  • Update the Linux kernel to a patched version immediately
  • If unable to patch, consider restricting CAP_NET_ADMIN privileges to trusted users only
  • Disable user namespaces if not required to reduce attack surface from unprivileged users
  • Monitor systems for signs of exploitation attempts while patching is in progress

Patch Information

The Linux kernel maintainers have released patches across multiple stable branches. The fix corrects the pointer arithmetic in both the parse and dump code paths to ensure proper byte-level addressing when handling geneve_opt structures.

Patches are available via the kernel git repository:

  • Kernel Git Commit 0a93a71
  • Kernel Git Commit 1b755d8
  • Kernel Git Commit 28d88ee
  • Kernel Git Commit 31d49eb
  • Kernel Git Commit 446d948
  • Kernel Git Commit 708e268
  • Kernel Git Commit a263d31
  • Kernel Git Commit ca2adfc

Debian users should refer to the Debian LTS Security Announcements for distribution-specific patches.

Workarounds

  • Restrict netfilter/nftables configuration capabilities to trusted administrators only
  • Remove CAP_NET_ADMIN from untrusted processes and containers
  • Disable unprivileged user namespaces via sysctl kernel.unprivileged_userns_clone=0
  • If GENEVE tunneling is not required, avoid using nftables tunnel objects with GENEVE options
bash
# Restrict unprivileged user namespaces (temporary mitigation)
sysctl -w kernel.unprivileged_userns_clone=0

# Make the change persistent
echo "kernel.unprivileged_userns_clone = 0" >> /etc/sysctl.d/99-security.conf

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787
  • Technical References
  • Debian LTS Announcement

  • Debian LTS Announcement
  • Vendor Resources
  • Kernel Git Commit

  • Kernel Git Commit

  • Kernel Git Commit

  • Kernel Git Commit

  • Kernel Git Commit

  • Kernel Git Commit

  • Kernel Git Commit

  • Kernel Git Commit
  • Related CVEs
  • CVE-2026-31412: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23448: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-23447: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31395: Linux Kernel Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English