Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2023-6546

CVE-2023-6546: Linux Kernel Privilege Escalation Flaw

CVE-2023-6546 is a privilege escalation vulnerability in the Linux Kernel GSM 0710 tty multiplexor caused by a race condition. Local users can exploit this to gain elevated privileges on the system.

Published: February 11, 2026

CVE-2023-6546 Overview

A race condition vulnerability was discovered in the GSM 0710 tty multiplexor in the Linux kernel. This issue occurs when two threads execute the GSMIOC_SETCONF ioctl on the same tty file descriptor with the gsm line discipline enabled, leading to a use-after-free condition on a struct gsm_dlci while restarting the gsm mux. This vulnerability could allow a local unprivileged user to escalate their privileges on the system.

Critical Impact

Local privilege escalation through use-after-free in Linux kernel GSM 0710 tty multiplexor, allowing unprivileged users to gain elevated system privileges.

Affected Products

  • Linux Kernel (versions prior to patch, including 6.5 rc1-rc6)
  • Fedora 39
  • Red Hat Enterprise Linux 8.0 and 9.0

Discovery Timeline

  • December 21, 2023 - CVE-2023-6546 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2023-6546

Vulnerability Analysis

This vulnerability combines two dangerous vulnerability classes: race conditions (CWE-362) and use-after-free (CWE-416). The flaw exists in the gsm_cleanup_mux function within the n_gsm driver (drivers/tty/n_gsm.c), which handles the GSM 0710 protocol multiplexing for serial communications.

The vulnerable code retrieves a pointer to gsm->dlci[0] before acquiring the mutex lock. In a multi-threaded environment, this creates a time-of-check-time-of-use (TOCTOU) window where another thread executing GSMIOC_SETCONF can modify or free the dlci structure between the pointer retrieval and its subsequent use.

When exploited, an attacker can trigger a use-after-free condition that corrupts kernel memory, potentially allowing arbitrary code execution in kernel context. Given that the attack requires only local access with low privileges and no user interaction, this presents a significant risk for multi-user systems and containers sharing a kernel.

Root Cause

The root cause is improper synchronization in the gsm_cleanup_mux function. The original code retrieved the dlci pointer (struct gsm_dlci *dlci = gsm->dlci[0]) at variable declaration time, before the mutex lock was acquired. This meant the pointer could become stale if another thread modified the gsm structure concurrently, leading to operations on freed memory.

Attack Vector

The attack requires local access to the system with the ability to open tty devices and set the GSM line discipline. An attacker would:

  1. Open a tty file descriptor and enable the n_gsm line discipline
  2. Spawn two concurrent threads that both call the GSMIOC_SETCONF ioctl
  3. Time the ioctl calls to trigger the race condition during gsm mux restart
  4. Exploit the resulting use-after-free to corrupt kernel memory
  5. Leverage the memory corruption for privilege escalation
c
 static void gsm_cleanup_mux(struct gsm_mux *gsm, bool disc)
 {
 	int i;
-	struct gsm_dlci *dlci = gsm->dlci[0];
+	struct gsm_dlci *dlci;
 	struct gsm_msg *txq, *ntxq;
 
 	gsm->dead = true;
 	mutex_lock(&gsm->mutex);
 
+	dlci = gsm->dlci[0];
 	if (dlci) {
 		if (disc && dlci->state != DLCI_CLOSED) {
 			gsm_dlci_begin_close(dlci);

Source: GitHub Linux Commit 3c4f833

Detection Methods for CVE-2023-6546

Indicators of Compromise

  • Unusual kernel crashes or panics related to the n_gsm module
  • Unexpected privilege changes for user processes
  • Suspicious processes accessing tty devices with GSM line discipline enabled
  • Kernel log messages indicating use-after-free or memory corruption in gsm-related functions

Detection Strategies

  • Monitor for processes setting the n_gsm line discipline on tty devices using audit rules
  • Deploy kernel exploit detection tools that can identify use-after-free exploitation patterns
  • Implement system call monitoring for GSMIOC_SETCONF ioctl operations
  • Use kernel address sanitizer (KASAN) in development environments to detect memory safety issues

Monitoring Recommendations

  • Enable kernel auditing for tty device operations and ioctl calls
  • Monitor for suspicious multi-threaded activity targeting the same tty file descriptors
  • Review system logs for kernel oops messages related to n_gsm or gsm_cleanup_mux
  • Deploy endpoint detection solutions capable of identifying kernel exploitation attempts

How to Mitigate CVE-2023-6546

Immediate Actions Required

  • Apply the latest kernel security patches from your Linux distribution
  • If patching is not immediately possible, consider disabling the n_gsm module if not required
  • Restrict access to tty devices for untrusted users
  • Monitor systems for signs of exploitation attempts

Patch Information

The vulnerability has been addressed in the upstream Linux kernel via commit 3c4f8333b582487a2d1e02171f1465531cde53e3. The fix moves the retrieval of the dlci pointer to after the mutex lock is acquired, eliminating the race condition.

Red Hat has released multiple security advisories addressing this vulnerability for Enterprise Linux 8 and 9, including RHSA-2024:0930, RHSA-2024:1018, and subsequent updates. Additional details are available in Red Hat Bugzilla #2255498.

Workarounds

  • Blacklist the n_gsm kernel module if GSM 0710 multiplexing is not required: echo "blacklist n_gsm" >> /etc/modprobe.d/blacklist.conf
  • Restrict access to tty devices using proper file permissions and group membership
  • Implement mandatory access control (SELinux/AppArmor) policies to limit ioctl operations on tty devices
  • Consider using container isolation with restricted device access to limit exposure
bash
# Configuration example
# Blacklist the n_gsm module if not needed
echo "blacklist n_gsm" | sudo tee /etc/modprobe.d/n_gsm-blacklist.conf

# Remove the module if currently loaded
sudo modprobe -r n_gsm

# Verify the module is not loaded
lsmod | grep n_gsm

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.31%

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

  • CWE-362
  • Technical References
  • Red Hat Security Advisory RHSA-2024:0930

  • Red Hat Security Advisory RHSA-2024:0937

  • Red Hat Security Advisory RHSA-2024:1018

  • Red Hat Security Advisory RHSA-2024:1019

  • Red Hat Security Advisory RHSA-2024:1055

  • Red Hat Security Advisory RHSA-2024:1250

  • Red Hat Security Advisory RHSA-2024:1253

  • Red Hat Security Advisory RHSA-2024:1306

  • Red Hat Security Advisory RHSA-2024:1607

  • Red Hat Security Advisory RHSA-2024:1612

  • Red Hat Security Advisory RHSA-2024:1614

  • Red Hat Security Advisory RHSA-2024:2093

  • Red Hat Security Advisory RHSA-2024:2394

  • Red Hat Security Advisory RHSA-2024:2621

  • Red Hat Security Advisory RHSA-2024:2697

  • Red Hat Security Advisory RHSA-2024:4577

  • Red Hat Security Advisory RHSA-2024:4729

  • Red Hat Security Advisory RHSA-2024:4731

  • Red Hat Security Advisory RHSA-2024:4970

  • Red Hat CVE-2023-6546 Report

  • ZDI Advisory ZDI-CAN-20527

  • Openwall OSS-Security Archive April 10

  • Openwall OSS-Security Archive April 10

  • Openwall OSS-Security Archive April 11

  • Openwall OSS-Security Archive April 11

  • Openwall OSS-Security Archive April 12

  • Openwall OSS-Security Archive April 12

  • Openwall OSS-Security Archive April 16

  • Openwall OSS-Security Archive April 17
  • Vendor Resources
  • Red Hat Bugzilla #2255498

  • GitHub Linux Commit 3c4f833
  • Related CVEs
  • CVE-2026-31413: Linux Kernel BPF Privilege Escalation

  • CVE-2026-31425: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-31411: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-23438: Linux Kernel Privilege Escalation Flaw
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