A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-46695

CVE-2024-46695: Linux Kernel Privilege Escalation Flaw

CVE-2024-46695 is a privilege escalation vulnerability in the Linux Kernel affecting SELinux and Smack security modules. Root users on NFS clients can bypass permission checks to modify security labels. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 15, 2026

CVE-2024-46695 Overview

CVE-2024-46695 is a Linux kernel vulnerability in the SELinux and Smack Linux Security Module (LSM) inode_setsecctx hook. The flaw allows a root user on a Network File System (NFS) client to change security labels on files exported with root squashing enabled. The nfsd_setattr() path called __vfs_setxattr_noperm(), which bypasses the LSM permission checks normally performed by security_inode_setxattr(). This permits modification of file security contexts that should otherwise be denied. The issue affects Linux kernel versions through 6.11-rc5 [CWE-276: Incorrect Default Permissions].

Critical Impact

A privileged local user on an NFS client can modify SELinux or Smack security labels on exported files, bypassing root squashing protections and altering Mandatory Access Control (MAC) policy enforcement on the server.

Affected Products

  • Linux kernel stable branches prior to the fix commits
  • Linux kernel 6.11-rc1 through 6.11-rc5
  • Debian distributions referenced in the January 2025 and March 2025 LTS advisories

Discovery Timeline

  • 2024-09-13 - CVE-2024-46695 published to the National Vulnerability Database (NVD)
  • 2025-11-03 - Last updated in the NVD database

Technical Details for CVE-2024-46695

Vulnerability Analysis

The vulnerability resides in the kernel's LSM integration with the NFS server (nfsd) subsystem. When an NFS client issues a request to set a file's security context, nfsd_setattr() invokes the security_inode_setsecctx() LSM hook. Both SELinux and Smack implement this hook by calling __vfs_setxattr_noperm(), which intentionally skips permission checks and expects the caller to enforce them.

While nfsd_setattr() performs NFS-layer access checks through fh_verify() and nfsd_permission(), these checks do not cover the additional MAC validations enforced by security_inode_setxattr() and its associated LSM hooks. As a result, a user with mapped root privileges on the NFS client can rewrite labels such as security.selinux on server-side inodes, undermining policy decisions on the server.

Root Cause

The root cause is a missing permission check in the inode_setsecctx hook implementations for SELinux and Smack. The kerneldoc for __vfs_setxattr_noperm() explicitly states that callers are responsible for performing permission checks, but nfsd_setattr() relied solely on NFS-layer checks. This omission allows the LSM-enforced restrictions on extended attribute modification to be bypassed entirely on the NFS server side, even when root squashing is configured on the export.

Attack Vector

Exploitation requires local access to an NFS client mounting an export from a vulnerable Linux server. The attacker must hold root on the client. Despite root squashing remapping the client's UID to an unprivileged identity on the server, the attacker can still issue setxattr operations targeting the security.* namespace. The server processes the request through nfsd_setattr(), which routes it to the unchecked LSM hook and applies the label change.

The upstream fix replaces the call to __vfs_setxattr_noperm() with __vfs_setxattr_locked(). The locked variant performs the full permission and LSM checks and also causes nfsd to recall conflicting NFSv4 delegations when a client modifies a label.

No public proof-of-concept exploit code has been released. See the Kernel Commit f71ec019257b and the Kernel Commit 459584258d47 for the fix details.

Detection Methods for CVE-2024-46695

Indicators of Compromise

  • Unexpected changes to extended attributes in the security.selinux or security.SMACK64 namespaces on NFS-exported files.
  • NFS SETATTR operations originating from clients targeting security label attributes on root-squashed exports.
  • Audit records showing successful setxattr operations on inodes whose owners and modes should not permit such changes.

Detection Strategies

  • Enable Linux Audit (auditd) rules on the NFS server for setxattr, lsetxattr, and fsetxattr syscalls targeting the security.* namespace.
  • Compare current SELinux file contexts against the policy baseline using restorecon -n -v to identify labels that drift from expected values.
  • Correlate NFS server logs and audit trails to flag label modifications attributable to remapped (squashed) root accounts.

Monitoring Recommendations

  • Centralize kernel, audit, and NFS server logs to a Security Information and Event Management (SIEM) platform for correlation and retention.
  • Establish a baseline of SELinux and Smack label distributions on exported file systems and alert on unexpected deviations.
  • Track Linux kernel package versions across the fleet to identify hosts still running pre-fix kernels.

How to Mitigate CVE-2024-46695

Immediate Actions Required

  • Upgrade the Linux kernel on all NFS servers to a version containing the upstream fixes referenced in the kernel.org stable commits.
  • For Debian systems, apply the updates described in the Debian LTS Announcement January 2025 and the Debian LTS Announcement March 2025.
  • Audit existing SELinux and Smack labels on NFS exports to detect prior tampering and restore correct contexts where needed.

Patch Information

The fix replaces __vfs_setxattr_noperm() with __vfs_setxattr_locked() in the SELinux and Smack inode_setsecctx hook implementations, ensuring LSM permission checks run on the server. Patches are available in the kernel.org stable tree, including commits f71ec019257b, 459584258d47, and 76a0e79bc84f.

Workarounds

  • Restrict NFS exports to trusted clients only and disable exports to hosts with untrusted local administrators.
  • Where feasible, mount affected exports with options that disable extended attribute modification by clients.
  • Limit which clients can reach the NFS server using host-based firewalls and the /etc/exports allow lists until patches are applied.
bash
# Verify the running kernel version on an NFS server
uname -r

# Audit setxattr operations on the security namespace (run on NFS server)
auditctl -a always,exit -F arch=b64 -S setxattr -S lsetxattr -S fsetxattr -k sec_xattr

# Review current SELinux labels on an exported path against policy
restorecon -n -v -R /srv/nfs/export

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

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.00%

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

  • Kernel Commit eebec98791d0

  • Kernel Commit fe0cd5379111

  • Debian LTS Announcement January 2025

  • Debian LTS Announcement March 2025
  • Vendor Resources
  • Kernel Commit 459584258d47

  • Kernel Commit 76a0e79bc84f

  • Kernel Commit f71ec019257b
  • Related CVEs
  • CVE-2026-46228: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-46226: Linux Kernel SPI Privilege Escalation

  • CVE-2026-46225: Linux Kernel RSPI Privilege Escalation

  • CVE-2026-46205: Linux Kernel Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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