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-2022-33981

CVE-2022-33981: Linux Kernel Use-After-Free Vulnerability

CVE-2022-33981 is a use-after-free flaw in the Linux kernel's floppy driver that can lead to denial of service attacks. This article covers the technical details, affected kernel versions, and mitigation strategies.

Published: February 11, 2026

CVE-2022-33981 Overview

CVE-2022-33981 is a Use-After-Free vulnerability in the Linux kernel's floppy disk driver (drivers/block/floppy.c). The flaw exists in the raw_cmd_ioctl function where a concurrency issue can lead to accessing memory after the raw_cmd structure has been deallocated. This vulnerability affects Linux kernel versions before 5.17.6 and can result in a denial of service condition on affected systems.

Critical Impact

Local attackers with low privileges can exploit this concurrency use-after-free flaw to cause a denial of service by triggering the race condition in the floppy driver's raw command handling functionality.

Affected Products

  • Linux Kernel (versions before 5.17.6)
  • Debian Linux 9.0
  • Debian Linux 10.0

Discovery Timeline

  • 2022-06-18 - CVE-2022-33981 published to NVD
  • 2025-05-05 - Last updated in NVD database

Technical Details for CVE-2022-33981

Vulnerability Analysis

This vulnerability represents a classic race condition leading to a use-after-free memory corruption bug. The floppy disk driver in the Linux kernel contains a flaw in how it handles raw command ioctl operations. When the raw_cmd_ioctl function processes requests, there exists a window where the raw_cmd structure can be deallocated while still being referenced by concurrent operations.

The use-after-free condition occurs because the driver does not properly synchronize access to the raw_cmd memory structure. When one thread deallocates this structure while another thread still holds a reference to it, subsequent access attempts will operate on freed memory, leading to unpredictable behavior and potential system crashes.

Root Cause

The root cause of CVE-2022-33981 is improper synchronization in the raw_cmd_ioctl function within drivers/block/floppy.c. The code path that handles raw floppy disk commands lacks adequate locking mechanisms to prevent concurrent access during deallocation. This allows a race condition where the raw_cmd structure can be freed by one execution path while another path is still using it.

The FDRAWCMD ioctl interface, which provides low-level hardware access to floppy drives, was identified as rarely used and potentially unstable, prompting the kernel maintainers to deprecate this functionality entirely.

Attack Vector

Exploitation requires local access to the system with low-level privileges. An attacker would need to trigger the race condition by sending carefully timed ioctl requests to the floppy driver. The attack does not require user interaction and operates within the local system context.

The vulnerability is limited to systems that have floppy drive support enabled in the kernel and where the attacker can interact with the floppy device interface. The impact is constrained to denial of service (availability impact) with no confidentiality or integrity compromise.

text
 	  To compile this driver as a module, choose M here: the
 	  module will be called floppy.
 
+config BLK_DEV_FD_RAWCMD
+	bool "Support for raw floppy disk commands (DEPRECATED)"
+	depends on BLK_DEV_FD
+	help
+	  If you want to use actual physical floppies and expect to do
+	  special low-level hardware accesses to them (access and use
+	  non-standard formats, for example), then enable this.
+
+	  Note that the code enabled by this option is rarely used and
+	  might be unstable or insecure, and distros should not enable it.
+
+	  Note: FDRAWCMD is deprecated and will be removed from the kernel
+	  in the near future.
+
+	  If unsure, say N.
+
 config AMIGA_FLOPPY
 	tristate "Amiga floppy support"
 	depends on AMIGA

Source: GitHub Linux Commit

Detection Methods for CVE-2022-33981

Indicators of Compromise

  • Unexpected kernel crashes or system hangs related to the floppy driver subsystem
  • Kernel oops messages referencing floppy.c or raw_cmd_ioctl in system logs
  • Abnormal ioctl calls to /dev/fd* devices from unprivileged processes
  • Memory corruption warnings in kernel logs associated with the block device layer

Detection Strategies

  • Monitor kernel logs (dmesg, /var/log/kern.log) for use-after-free warnings or crashes in the floppy driver
  • Implement audit rules to track ioctl system calls targeting floppy device nodes
  • Use kernel address sanitizer (KASAN) during testing to detect use-after-free conditions
  • Deploy runtime integrity monitoring to detect suspicious interactions with deprecated floppy interfaces

Monitoring Recommendations

  • Configure centralized logging to capture kernel messages from all endpoints
  • Set up alerts for kernel oops events mentioning floppy.c or related driver components
  • Monitor for unusual access patterns to legacy block devices (/dev/fd*)
  • Implement SentinelOne Singularity platform for real-time kernel-level threat detection

How to Mitigate CVE-2022-33981

Immediate Actions Required

  • Update the Linux kernel to version 5.17.6 or later where the fix is included
  • Apply vendor-specific patches for Debian systems (DSA-5173)
  • Disable the floppy driver module if not required: modprobe -r floppy
  • Restrict access to floppy device nodes using appropriate file permissions

Patch Information

The vulnerability has been addressed in Linux kernel version 5.17.6. The fix introduces a new kernel configuration option CONFIG_BLK_DEV_FD_RAWCMD which disables the vulnerable FDRAWCMD functionality by default. The raw command interface is now deprecated and will be removed in future kernel releases.

Relevant patches and advisories:

  • Linux Kernel ChangeLog 5.17.6
  • GitHub Linux Commit
  • Debian Security Advisory DSA-5173
  • Debian LTS Announcement

Workarounds

  • Blacklist the floppy module to prevent loading: add blacklist floppy to /etc/modprobe.d/blacklist.conf
  • Remove the floppy kernel module entirely if floppy drive support is not needed
  • Restrict device node permissions to prevent unprivileged access to /dev/fd*
  • Rebuild the kernel without CONFIG_BLK_DEV_FD_RAWCMD enabled
bash
# Configuration example
# Blacklist the floppy driver module
echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf

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

# Verify the module is not loaded
lsmod | grep floppy

# Restrict access to floppy device nodes (if they exist)
sudo chmod 600 /dev/fd* 2>/dev/null || true

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

  • SeverityLOW

  • CVSS Score3.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-416
  • Technical References
  • IBM X-Force Vulnerability #225362

  • Debian LTS Announcement

  • Debian Security Advisory DSA-5173
  • Vendor Resources
  • Linux Kernel ChangeLog 5.17.6

  • GitHub Linux Commit

  • OSS-Sec Mailing List Discussion
  • Related CVEs
  • CVE-2026-31414: Linux Kernel Use-After-Free Vulnerability

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

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

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