Null-Dereference READ Vulnerability in TinyUSB Package

tinyusb Updated 28 Nov 2025

Summary

14/09/2025
N/A
Yes i
Unrated
Not published

OSV-2025-742: Null-dereference READ in ubsan_GetStackTrace. Affects tinyusb versions >= 0263cfc01ab63d6799e80cbbf691af1979cf3ab7, < 5ef55bfa30d6f8cf175b3d327f621c76aae7b138. Fixed in 5ef55bfa30d6f8cf175b3d327f621c76aae7b138. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

TinyUSB is an open-source USB Host/Device stack designed for embedded systems, providing a lightweight and efficient solution for USB communication. It supports various USB classes and is widely used in microcontroller applications. However, it is susceptible to a null-dereference read vulnerability that can lead to application crashes.

Vulnerability Detail

The vulnerability arises from a null-dereference read in the function ubsan_GetStackTrace, which can occur when the function attempts to access memory that has not been properly initialized. This can lead to crashes and potentially allow for denial of service attacks. The issue was reported through OSS-Fuzz, indicating that it was discovered during fuzz testing, a technique used to identify vulnerabilities by inputting random data into programs.

How To Fix

Minimum fixed version

5ef55bfa30d6f8cf175b3d327f621c76aae7b138

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, ensure that all pointers used in the ubsan_GetStackTrace function are properly initialized before use. This can help mitigate the risk of null-dereference reads until the package is updated.

Conclusion

The null-dereference read vulnerability in the TinyUSB package poses a significant risk of application crashes. It is crucial to update to the patched version to mitigate this risk. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for tinyusb →

Share this vulnerability

FAQ

A null-dereference read occurs when a program attempts to access memory through a pointer that has not been initialized, leading to crashes or undefined behavior.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

The main consequence is a crash of the application, which can lead to denial of service and affect the reliability of systems using TinyUSB.

Yes, a patch is available in the fixed version 5ef55bfa30d6f8cf175b3d327f621c76aae7b138. Updating to this version will resolve the issue.

If an immediate update is not possible, ensure that all pointers in the relevant functions are initialized to avoid null-dereference reads as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for tinyusb.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

5ef55bfa30d6f8cf175b3d327f621c76aae7b138

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback