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-2026-23339

CVE-2026-23339: Linux Kernel Use-After-Free Vulnerability

CVE-2026-23339 is a use-after-free flaw in the Linux kernel NFC NCI subsystem that causes memory leaks on error paths. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 27, 2026

CVE-2026-23339 Overview

CVE-2026-23339 is a memory leak vulnerability in the Linux kernel's NFC (Near Field Communication) NCI (NFC Controller Interface) subsystem. The vulnerability exists in the nci_transceive() function, which takes ownership of an skb (socket buffer) passed by the caller but fails to properly free it on certain early error paths, specifically when returning -EPROTO, -EINVAL, or -EBUSY errors.

This memory leak was detected through kernel memory leak detection (kmemleak) during self-testing of the nci/nci_dev module, where issues clearing NCI_DATA_EXCHANGE caused the error paths to be triggered occasionally.

Critical Impact

Unreferenced memory objects (640 bytes each) accumulate over time when the NCI transceive error paths are triggered, potentially leading to resource exhaustion and denial of service conditions on systems utilizing NFC functionality.

Affected Products

  • Linux kernel (NFC/NCI subsystem)
  • Systems with NFC hardware utilizing the NCI driver stack
  • Affected stable kernel branches (multiple versions patched)

Discovery Timeline

  • 2026-03-25 - CVE CVE-2026-23339 published to NVD
  • 2026-03-25 - Last updated in NVD database

Technical Details for CVE-2026-23339

Vulnerability Analysis

The vulnerability resides in the nci_transceive() function within the Linux kernel's NFC NCI subsystem. When this function is called, it assumes ownership of the socket buffer (skb) passed by the caller. According to proper memory management conventions, the function must either successfully process the buffer or free it if an error occurs.

However, several early error return paths in nci_transceive() fail to call kfree_skb() before returning. When the function encounters -EPROTO (protocol error), -EINVAL (invalid argument), or -EBUSY (device busy) conditions, it returns immediately without freeing the socket buffer, resulting in a memory leak.

The kmemleak backtrace shows the allocation path originates from:

  • kmem_cache_alloc_node_noprof() → __alloc_skb() → alloc_skb_with_frags() → sock_alloc_send_pskb() → nfc_alloc_send_skb() → rawsock_sendmsg()

Each leaked object is 640 bytes in size, and repeated triggering of the error conditions can lead to significant memory consumption.

Root Cause

The root cause is incomplete error handling in the nci_transceive() function. The function's design contract specifies that it takes ownership of the skb parameter, meaning it is responsible for freeing the buffer in all code paths—both success and failure. The developer implementing the error handling for the -EPROTO, -EINVAL, and -EBUSY conditions neglected to include the necessary kfree_skb() call before returning from these error paths.

This is a common pattern of memory management bugs in kernel code where ownership semantics require careful tracking of which function is responsible for freeing allocated resources.

Attack Vector

The vulnerability is triggered through the NFC subsystem's socket interface. An attacker with local access could potentially exploit this by:

  1. Opening an NFC raw socket via rawsock_sendmsg()
  2. Sending crafted messages that cause nci_transceive() to take an early error path
  3. Repeatedly triggering the error condition to accumulate leaked memory
  4. Eventually exhausting available kernel memory resources

The attack requires local access to the NFC subsystem and the ability to send NFC messages that trigger the specific error conditions. The vulnerability manifests in the NCI data exchange path, particularly when the NCI_DATA_EXCHANGE flag is not properly cleared.

For detailed information about the fix implementation, refer to the Kernel Git Commit.

Detection Methods for CVE-2026-23339

Indicators of Compromise

  • Increasing kernel memory consumption without corresponding application activity
  • Kmemleak reports showing unreferenced objects with backtraces through nfc_alloc_send_skb() and nci_transceive()
  • System log entries indicating NFC/NCI subsystem errors with -EPROTO, -EINVAL, or -EBUSY return codes
  • Performance degradation on systems with active NFC communication

Detection Strategies

  • Enable kmemleak in kernel configuration (CONFIG_DEBUG_KMEMLEAK) to detect unreferenced memory objects
  • Monitor /sys/kernel/debug/kmemleak for entries containing nci_transceive or nfc_alloc_send_skb in backtraces
  • Use kernel tracing (ftrace) to monitor nci_transceive() return values for elevated error rates
  • Implement memory pressure monitoring on systems with NFC functionality enabled

Monitoring Recommendations

  • Set up automated kmemleak scanning on systems with active NFC usage
  • Monitor kernel slab allocator statistics for skbuff_head_cache growth anomalies
  • Configure alerts for sustained memory consumption increases on NFC-enabled devices
  • Review system logs for patterns of repeated NCI transceive failures

How to Mitigate CVE-2026-23339

Immediate Actions Required

  • Apply kernel patches from the stable kernel branches that address this vulnerability
  • If patching is not immediately possible, consider disabling NFC functionality if not required
  • Monitor affected systems for signs of memory exhaustion
  • Prioritize patching on systems that actively use NFC communication

Patch Information

The Linux kernel maintainers have released patches across multiple stable kernel branches. The fix ensures that kfree_skb() is called on all error paths in nci_transceive() before returning.

Patch commits are available for multiple kernel versions:

  • Kernel Git Commit Update 1
  • Kernel Git Commit Update 2
  • Kernel Git Commit Update 3
  • Kernel Git Commit Update 4
  • Kernel Git Commit Update 5
  • Kernel Git Commit Update 6

Workarounds

  • Disable NFC kernel modules if NFC functionality is not required: modprobe -r nfc nci
  • Blacklist NFC modules in /etc/modprobe.d/ to prevent automatic loading
  • Implement resource limits and monitoring for systems where patching cannot be immediately performed
  • Consider using containerization or namespaces to limit NFC access to trusted processes only
bash
# Disable NFC modules as a temporary workaround
echo "blacklist nfc" >> /etc/modprobe.d/disable-nfc.conf
echo "blacklist nci" >> /etc/modprobe.d/disable-nfc.conf
# Remove currently loaded modules
modprobe -r nci
modprobe -r nfc
# Update initramfs to persist changes
update-initramfs -u

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLinux Kernel

  • SeverityNONE

  • CVSS ScoreN/A

  • EPSS Probability0.02%

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Kernel Git Commit Update 1

  • Kernel Git Commit Update 2

  • Kernel Git Commit Update 3

  • Kernel Git Commit Update 4

  • Kernel Git Commit Update 5

  • Kernel Git Commit Update 6
  • Related CVEs
  • CVE-2026-23396: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23344: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23329: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-23367: Linux Kernel Use-After-Free Vulnerability
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