Heap-buffer-overflow in spvtools::disassemble::InstructionDisassembler::EmitInstruction

spirv-tools Updated 02 Oct 2025

Summary

19/06/2024
MEDIUM
Yes i
Medium
Not published

OSV-2024-574: Heap-buffer-overflow in spvtools::disassemble::InstructionDisassembler::EmitInstruction. Affects spirv-tools versions >= c3178da8eac9bc7d1788e95f8d555918ba483c23, < 7bf2d0275e480852abfccc5ff9a4cabd388286b2. Fixed in 7bf2d0275e480852abfccc5ff9a4cabd388286b2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package under scrutiny is spirv-tools, which is part of the OSS-Fuzz ecosystem. spirv-tools is a set of utilities and libraries for working with SPIR-V, a binary intermediate language for representing shaders and compute kernels. It provides tools for validating, optimizing, and disassembling SPIR-V modules. The vulnerability affects the package's disassembly functionality.

Vulnerability Detail

The vulnerability, identified as OSV-2024-574, is a heap-buffer-overflow in the spvtools::disassemble::InstructionDisassembler::EmitInstruction function. It can be triggered when disassembling SPIR-V instructions, leading to a read of one byte beyond the bounds of a heap buffer. This vulnerability can potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition. The issue was reported through the OSS-Fuzz project.

How To Fix

Minimum fixed version

7bf2d0275e480852abfccc5ff9a4cabd388286b2

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

No workaround has been provided for this vulnerability.

Conclusion

In conclusion, the spirv-tools package is vulnerable to a heap-buffer-overflow vulnerability in the disassembly functionality. It is recommended to update to a fixed version of the package to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for spirv-tools →

Share this vulnerability

FAQ

spirv-tools is a set of utilities and libraries for working with SPIR-V, a binary intermediate language for representing shaders and compute kernels.

The vulnerability can potentially be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition.

The vulnerability was discovered through the OSS-Fuzz project, which performs continuous fuzzing on open-source software.

Yes, a fix for this vulnerability has been introduced in commit c3178da8eac9bc7d1788e95f8d555918ba483c23 of the spirv-tools repository.

No workaround has been provided for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for spirv-tools.

How To Fix

Minimum fixed version

7bf2d0275e480852abfccc5ff9a4cabd388286b2

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