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
    • 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-2023-4194

CVE-2023-4194: Linux Kernel TUN/TAP Auth Bypass Flaw

CVE-2023-4194 is an authentication bypass flaw in Linux Kernel's TUN/TAP functionality that allows local users to bypass network filters and gain unauthorized access. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-4194 Overview

A flaw was found in the Linux kernel's TUN/TAP functionality that allows a local user to bypass network filters and gain unauthorized access to system resources. This vulnerability exists because the original patches intended to fix CVE-2023-1076 were incorrect or incomplete. The issue stems from the tun_chr_open() and tap_open() functions passing inode->i_uid to sock_init_data_uid() as the last parameter, which results in improper socket UID initialization.

Critical Impact

Local attackers can bypass network filtering mechanisms by exploiting incorrect socket UID initialization in TUN/TAP devices, potentially allowing unauthorized network access to protected resources.

Affected Products

  • Linux Kernel (versions prior to 6.5 and 6.5 release candidates rc1-rc4)
  • Red Hat Enterprise Linux 8.0 and 9.0
  • Fedora 37 and 38
  • Debian Linux 10.0, 11.0, and 12.0

Discovery Timeline

  • 2023-07-31 - Patches submitted to the Linux Kernel Mailing List
  • 2023-08-07 - CVE CVE-2023-4194 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-4194

Vulnerability Analysis

This vulnerability represents an Authorization Bypass flaw (CWE-863) combined with a Type Confusion issue (CWE-843) in the Linux kernel's virtual network device subsystem. The TUN/TAP driver provides user-space programs with packet-level network access through virtual network interfaces. When a TUN or TAP device is opened, the kernel must properly initialize the associated socket's UID to ensure network filtering rules are correctly applied.

The root issue lies in the socket initialization code where the kernel incorrectly uses the inode's UID (inode->i_uid) rather than the actual process credentials when initializing the socket data structure. This mismatch allows local users to create network sockets that inherit unexpected UIDs, effectively bypassing UID-based network filtering mechanisms such as iptables owner matching rules.

Root Cause

The vulnerability originated from an incomplete fix for the earlier CVE-2023-1076. The upstream commits a096ccca6e50 ("tun: tun_chr_open(): correctly initialize socket uid") and 66b2c338adce ("tap: tap_open(): correctly initialize socket uid") attempted to address socket UID initialization but incorrectly passed inode->i_uid to the sock_init_data_uid() function. This parameter choice does not accurately reflect the credentials of the process actually opening the TUN/TAP device, leading to authorization inconsistencies.

Attack Vector

An attacker with local access to the system can exploit this vulnerability by opening TUN/TAP devices and establishing network connections that bypass UID-based firewall rules. The attack requires low privileges and no user interaction, making it particularly concerning for multi-user systems or containerized environments where network isolation is critical.

The exploitation flow involves:

  1. A local user opens a /dev/net/tun or TAP device file
  2. The kernel incorrectly initializes the socket UID using the device file's inode UID
  3. Network traffic generated through this socket bypasses owner-match firewall rules
  4. The attacker gains access to network resources that should be filtered based on UID

Detection Methods for CVE-2023-4194

Indicators of Compromise

  • Unexpected network connections originating from TUN/TAP interfaces with mismatched socket UIDs
  • Firewall rule bypass events where UID-based filtering should have blocked traffic
  • Unusual TUN/TAP device activity from non-privileged user accounts
  • Network traffic anomalies from virtual network interfaces that don't match expected user contexts

Detection Strategies

  • Monitor system calls related to TUN/TAP device operations (open() on /dev/net/tun) for anomalous patterns
  • Implement audit rules to track network socket creation and compare socket UIDs against process credentials
  • Deploy network monitoring to detect traffic that bypasses expected UID-based filtering rules
  • Use kernel tracing tools to monitor tun_chr_open() and tap_open() function calls

Monitoring Recommendations

  • Enable kernel audit logging for network namespace and TUN/TAP device operations
  • Configure SentinelOne agents to monitor for suspicious virtual network interface activity
  • Implement alerting on firewall rule bypass attempts involving owner-match criteria
  • Review system logs for discrepancies between process UIDs and associated socket UIDs

How to Mitigate CVE-2023-4194

Immediate Actions Required

  • Apply kernel security updates from your Linux distribution immediately
  • Restrict access to /dev/net/tun and TAP devices to only trusted users and services
  • Review and strengthen network filtering rules to not solely rely on UID-based matching
  • Audit systems for any signs of network filter bypass exploitation

Patch Information

Security patches are available from multiple vendors. Red Hat has released advisory RHSA-2023:6583 addressing this vulnerability. Debian has issued security advisories DSA-5480 and DSA-5492. Fedora users should refer to the Fedora package announcements for updated kernel packages.

The corrected patches properly initialize socket UIDs using the actual process credentials rather than the inode UID. Review the kernel mailing list patches for technical details on the fix implementation.

Workarounds

  • Restrict TUN/TAP device file permissions using chmod 0600 /dev/net/tun to limit access to root only
  • Implement additional network filtering mechanisms beyond UID-based rules (IP addresses, network namespaces)
  • Use network namespaces to provide stronger isolation for untrusted processes
  • Consider disabling TUN/TAP kernel modules if not required for system operation
bash
# Restrict TUN device access to root only
chmod 0600 /dev/net/tun

# Verify current permissions
ls -la /dev/net/tun

# Optionally disable TUN module if not needed
modprobe -r tun
echo "blacklist tun" >> /etc/modprobe.d/blacklist-tun.conf

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLinux Kernel

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-863

  • CWE-843
  • Technical References
  • Red Hat Security Advisory RHSA-2023:6583

  • Red Hat CVE-2023-4194 Information

  • Red Hat Bug ID #2229498

  • Debian LTS Announcement 2023-10

  • Fedora Package Announcement 1

  • Fedora Package Announcement 2

  • NetApp Security Advisory NTAP-20231027-0002

  • Debian Security DSA-5480

  • Debian Security DSA-5492
  • Vendor Resources
  • Kernel Mailing List Patch 1

  • Kernel Mailing List Patch 2

  • Kernel Mailing List Patch 3
  • Related CVEs
  • CVE-2026-31392: Linux Kernel Kerberos Auth Bypass Flaw

  • CVE-2026-23318: Linux Kernel USB Audio Auth Bypass Issue

  • CVE-2025-71239: Linux Kernel Auth Bypass Vulnerability

  • CVE-2026-23241: Linux Kernel Auth Bypass 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