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-2024-42301

CVE-2024-42301: Linux Kernel Buffer Overflow Vulnerability

CVE-2024-42301 is a buffer overflow flaw in the Linux Kernel's parport driver caused by unsafe sprintf usage. This vulnerability can lead to stack corruption and kernel panics. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-42301 Overview

CVE-2024-42301 is an out-of-bounds write vulnerability in the Linux kernel's parport (parallel port) driver subsystem. The vulnerability exists in the do_hardware_base_addr function where the use of sprintf for string formatting operations can lead to buffer overflow conditions. When exploited, this vulnerability can corrupt the kernel stack, potentially leading to kernel panic, denial of service, or local privilege escalation.

Critical Impact

This vulnerability allows a local attacker with low privileges to potentially achieve high impact on confidentiality, integrity, and availability through kernel stack corruption, as evidenced by kernel panic events observed in production environments.

Affected Products

  • Linux Kernel (multiple versions)
  • Debian Linux distributions (covered by LTS announcements)
  • HUAWEI HUAWEI QingYun PGUX-W515x-B081 systems (as noted in kernel panic traces)

Discovery Timeline

  • August 17, 2024 - CVE-2024-42301 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2024-42301

Vulnerability Analysis

This vulnerability stems from unsafe string formatting practices in the Linux kernel's parallel port driver. The sprintf function does not perform bounds checking when writing formatted data to a destination buffer. In the do_hardware_base_addr function within the parport module, this leads to an out-of-bounds write condition when the formatted string exceeds the allocated buffer size.

The kernel stack trace from an actual incident demonstrates the severity of this issue, showing a stack-protector triggered kernel panic in the do_hardware_base_addr+0xcc/0xd0 function within the parport module. The stack-protector mechanism detected kernel stack corruption, indicating that the buffer overflow had overwritten the stack canary value.

Root Cause

The root cause is the use of the unsafe sprintf function instead of the bounds-checked snprintf variant. The sprintf function writes formatted output to a buffer without any length limitation, allowing data to be written beyond the buffer's allocated boundaries. When processing hardware base address information in the parport driver, if the formatted string is longer than expected, it will overflow the destination buffer and corrupt adjacent memory on the stack.

The fix involves replacing sprintf calls with snprintf, which accepts a maximum buffer size parameter, ensuring that writes are truncated rather than overflowing the buffer boundary.

Attack Vector

The attack vector is local, requiring the attacker to have local access to the system with low-level privileges. Exploitation involves triggering the vulnerable code path in the parport driver, potentially by:

  1. Loading the parport kernel module with specially crafted parameters
  2. Interacting with parallel port device nodes that trigger the do_hardware_base_addr function
  3. Manipulating hardware configuration through sysfs or ioctl calls to cause oversized string formatting

The stack trace captured during exploitation shows the call chain:

  • dump_backtrace → show_stack → dump_stack → panic → __stack_chk_fail → do_hardware_base_addr

The __stack_chk_fail call indicates the stack canary was corrupted, demonstrating successful buffer overflow exploitation. On systems without stack protection, an attacker could potentially achieve arbitrary code execution in kernel context.

Detection Methods for CVE-2024-42301

Indicators of Compromise

  • Kernel panic messages containing "stack-protector: Kernel stack is corrupted in: do_hardware_base_addr" in system logs
  • Unexpected crashes or system instability when interacting with parallel port hardware or the parport module
  • Kernel log entries showing __stack_chk_fail calls originating from the parport module
  • Anomalous loading patterns of the parport kernel module

Detection Strategies

  • Monitor kernel logs (dmesg, /var/log/kern.log) for stack-protector failures mentioning parport or do_hardware_base_addr
  • Implement runtime integrity monitoring for kernel modules, specifically watching for unusual parport module behavior
  • Deploy endpoint detection solutions capable of identifying kernel-level memory corruption attempts
  • Enable kernel auditing to track module loading and unloading events for the parport driver

Monitoring Recommendations

  • Configure log aggregation to alert on kernel panic events with stack corruption signatures
  • Monitor for repeated attempts to load or interact with the parport module from non-standard processes
  • Track file access patterns to /dev/parport* device nodes for unusual activity
  • Implement system call auditing for ioctl operations targeting parallel port devices

How to Mitigate CVE-2024-42301

Immediate Actions Required

  • Apply the latest kernel patches from the Linux kernel stable tree that address this vulnerability
  • If parallel port functionality is not required, disable or blacklist the parport kernel module
  • Restrict access to parallel port device nodes using appropriate file permissions
  • Monitor systems for signs of exploitation attempts while patches are being deployed

Patch Information

The Linux kernel development team has released patches across multiple stable kernel branches. The fix replaces unsafe sprintf calls with bounds-checked snprintf to prevent buffer overflows. Patches are available through the following kernel git commits:

  • Kernel Git Commit 166a0bd
  • Kernel Git Commit 47b3dce
  • Kernel Git Commit 7789a1d
  • Kernel Git Commit 7f4da75
  • Kernel Git Commit a44f88f
  • Kernel Git Commit ab11dac
  • Kernel Git Commit b579ea3
  • Kernel Git Commit c719b39

Debian users should refer to the Debian LTS Announcement for October 2024 and Debian LTS Announcement for January 2025 for distribution-specific patching guidance.

Workarounds

  • Blacklist the parport module by adding blacklist parport to /etc/modprobe.d/blacklist.conf if parallel port functionality is not needed
  • Restrict access to parport-related device files using chmod/chown to limit exposure to trusted users only
  • Enable kernel stack protection mechanisms (stack canaries) if not already enabled to detect exploitation attempts
  • Consider using mandatory access control (SELinux/AppArmor) policies to restrict parport module interactions
bash
# Disable parport module if not required
echo "blacklist parport" >> /etc/modprobe.d/blacklist-parport.conf
echo "blacklist parport_pc" >> /etc/modprobe.d/blacklist-parport.conf

# Remove currently loaded parport modules
rmmod parport_pc 2>/dev/null
rmmod parport 2>/dev/null

# Verify module is blacklisted
cat /etc/modprobe.d/blacklist-parport.conf

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLinux Kernel

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-129
  • Technical References
  • Debian LTS Announcement 2024-10

  • Debian LTS Announcement 2025-01
  • Vendor Resources
  • Kernel Git Commit 166a0bd

  • Kernel Git Commit 47b3dce

  • Kernel Git Commit 7789a1d

  • Kernel Git Commit 7f4da75

  • Kernel Git Commit a44f88f

  • Kernel Git Commit ab11dac

  • Kernel Git Commit b579ea3

  • Kernel Git Commit c719b39
  • Related CVEs
  • CVE-2026-31449: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31512: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31438: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31450: Linux Kernel Buffer Overflow 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