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

CVE-2026-42485: AGL CAN Service Buffer Overflow Vulnerability

CVE-2026-42485 is a stack buffer overflow in AGL agl-service-can-low-level's uds-c library that enables attackers to overwrite return addresses on automotive ECUs. This post covers technical details, impact, and mitigations.

Published: May 7, 2026

CVE-2026-42485 Overview

CVE-2026-42485 is a stack buffer overflow in the uds-c library used by Automotive Grade Linux (AGL) agl-service-can-low-level. The send_diagnostic_request function in uds.c allocates a 6-byte stack buffer defined by MAX_DIAGNOSTIC_PAYLOAD_SIZE=6 but copies up to 7 bytes via memcpy at an offset of 1+pid_length. The payload_length field is a uint8_t and lacks bounds validation against the destination buffer. The result is 1 to 4 bytes of attacker-controlled stack overflow on automotive Electronic Control Units (ECUs). On 32-bit ARM platforms without stack canaries, the flaw can lead to return address overwrite and remote code execution.

Critical Impact

A network-reachable attacker can corrupt the stack of a CAN bus diagnostic service running on automotive ECUs, causing service disruption and, on hardened-deficient targets, code execution.

Affected Products

  • AGL agl-service-can-low-level
  • uds-c library (uds.csend_diagnostic_request function)
  • Automotive Grade Linux deployments on 32-bit ARM ECUs

Discovery Timeline

  • 2026-05-01 - CVE-2026-42485 published to the National Vulnerability Database (NVD)
  • 2026-05-05 - Last updated in NVD database

Technical Details for CVE-2026-42485

Vulnerability Analysis

The vulnerability is a classic stack-based buffer overflow tracked under [CWE-121]. The send_diagnostic_request function allocates a fixed 6-byte payload buffer on the stack. The function then writes up to 7 bytes of caller-supplied data into that buffer using memcpy, beginning at an offset of 1+pid_length. The pid_length value is typically 2 or 3 bytes, which pushes the write past the end of the 6-byte allocation.

The payload_length field is declared as a uint8_t and is never compared against MAX_DIAGNOSTIC_PAYLOAD_SIZE. Because the source size constant MAX_UDS_REQUEST_PAYLOAD_LENGTH=7 exceeds the destination size MAX_DIAGNOSTIC_PAYLOAD_SIZE=6, the function reliably overruns by 1 to 4 bytes depending on the offset.

Root Cause

The root cause is a missing bounds check between two related size constants. Developers used MAX_UDS_REQUEST_PAYLOAD_LENGTH to size the source while sizing the destination with the smaller MAX_DIAGNOSTIC_PAYLOAD_SIZE. Adding 1+pid_length to the destination offset compounds the mismatch and guarantees the overrun under normal call paths.

Attack Vector

The attack vector is network reachable through the CAN low-level service used by AGL infotainment and telematics stacks. An attacker who can submit Unified Diagnostic Services (UDS) requests to the service can trigger the overflow by crafting a diagnostic frame with a maximal payload_length and a multi-byte PID. On 32-bit ARM ECUs compiled without stack canaries (-fstack-protector-strong), the overflow can overwrite the saved return address and pivot control flow. The CVSS vector indicates the primary outcome is high availability impact, with confidentiality and integrity unaffected by default exploitation paths.

No public proof-of-concept exploitation code has been verified. See the Automotive Linux Gerrit Page and the GitHub Gist Code Snippet for source-level context.

Detection Methods for CVE-2026-42485

Indicators of Compromise

  • Unexpected crashes or restarts of the agl-service-can-low-level process on AGL-based ECUs.
  • CAN bus diagnostic frames where payload_length approaches or equals MAX_UDS_REQUEST_PAYLOAD_LENGTH (7) combined with multi-byte pid_length values.
  • Core dumps or kernel logs showing memory corruption inside send_diagnostic_request in uds.c.

Detection Strategies

  • Audit any binary linking uds-c for the unpatched send_diagnostic_request and verify constant alignment between MAX_DIAGNOSTIC_PAYLOAD_SIZE and MAX_UDS_REQUEST_PAYLOAD_LENGTH.
  • Run fuzzing campaigns against the UDS request handler with payloads of increasing length and varying PID widths.
  • Inspect ECU build flags to confirm whether -fstack-protector-strong and Position Independent Executable (PIE) hardening are enabled.

Monitoring Recommendations

  • Forward ECU systemd and crash telemetry to a centralized log pipeline and alert on repeated crashes of CAN diagnostic services.
  • Monitor in-vehicle network gateways for malformed UDS frames originating from non-trusted sources or external interfaces.
  • Track process restart counters on safety-relevant ECUs to surface repeated exploitation attempts.

How to Mitigate CVE-2026-42485

Immediate Actions Required

  • Restrict access to the agl-service-can-low-level UDS endpoint so only authenticated diagnostic tools can issue requests.
  • Apply upstream fixes from the AGL uds-c repository once published, then rebuild and reflash affected ECUs.
  • Rebuild affected services with -fstack-protector-strong, -D_FORTIFY_SOURCE=2, PIE, and read-only relocations to limit exploitability.

Patch Information

No formal vendor advisory or fixed version is referenced in the NVD record at the time of publication. Track the Automotive Linux Gerrit Page for source updates to uds.c that align MAX_DIAGNOSTIC_PAYLOAD_SIZE with MAX_UDS_REQUEST_PAYLOAD_LENGTH or that add an explicit bounds check on payload_length.

Workarounds

  • Filter inbound UDS requests at the in-vehicle gateway and drop frames with payload_length greater than the destination buffer size.
  • Disable or firewall the CAN low-level diagnostic service on production ECUs that do not require runtime UDS access.
  • Enforce CAN segmentation so untrusted networks (telematics, infotainment) cannot reach diagnostic ECUs directly.
bash
# Configuration example - block oversized UDS payloads at a Linux CAN gateway
# Drop classical CAN frames where the UDS Single Frame length nibble (>6 bytes) is set
cansend_filter --iface can0 \
  --drop-if 'data[0] & 0x0F > 0x06' \
  --log /var/log/uds-filter.log

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechAgl

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-121
  • Technical References
  • Automotive Linux Gerrit Page

  • GitHub Gist Code Snippet
  • Related CVEs
  • CVE-2026-37532: AGL CAN Service Buffer Overflow Flaw

  • CVE-2026-37526: AGL afb-daemon Privilege Escalation Flaw

  • CVE-2026-37531: AGL App-Framework Path Traversal Flaw

  • CVE-2026-37525: AGL afb-daemon 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