Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-23272 Overview
CVE-2025-23272 affects the NVIDIA nvJPEG library, a GPU-accelerated JPEG decoding component used in CUDA-based imaging and machine learning workloads. The vulnerability allows an attacker to trigger an out-of-bounds read [CWE-125] by supplying a specially crafted JPEG file to an application that uses nvJPEG for decoding. Successful exploitation may lead to information disclosure or denial of service against the host process.
Critical Impact
A crafted JPEG processed by a vulnerable nvJPEG build can leak adjacent process memory or terminate the decoding application, disrupting GPU-based imaging pipelines.
Affected Products
- NVIDIA nvJPEG library (CUDA Toolkit component)
- Applications and services that link against vulnerable nvJPEG builds
- GPU-accelerated image processing and ML inference pipelines using nvJPEG
Discovery Timeline
- 2025-09-24 - CVE-2025-23272 published to the National Vulnerability Database
- 2026-09-26 - Last updated in NVD database
Technical Details for CVE-2025-23272
Vulnerability Analysis
The nvJPEG library parses JPEG headers and segment data to configure GPU-side decoding. A specially crafted JPEG file causes the decoder to read beyond the bounds of an allocated buffer during parsing. The read access violation can leak uninitialized or adjacent memory contents back into the application state or crash the process.
Exploitation requires local access, meaning the attacker must deliver the crafted file to a process that invokes nvJPEG on the target system. The attack complexity is high because the attacker must shape the malformed JPEG to reach the vulnerable code path without failing earlier validation. Impact is limited to confidentiality of in-process memory and availability of the decoding workload; integrity is not affected.
Root Cause
The root cause is an out-of-bounds read [CWE-125] in nvJPEG's JPEG parsing logic. The decoder trusts length or offset fields derived from the input file without fully validating them against the actual buffer size. When these fields are manipulated, subsequent read operations index past the end of the backing buffer.
Attack Vector
An attacker places or supplies a malicious JPEG that is subsequently decoded by a process using nvJPEG. Typical delivery paths include image upload endpoints that offload decoding to the GPU, ML preprocessing jobs that consume user-provided images, and local tools that batch-process untrusted media. No authentication or user interaction is required at the API layer, but the attacker must have a path to place the file where the vulnerable process will read it.
No public proof-of-concept code is available for CVE-2025-23272. Refer to the NVIDIA Support Article for vendor technical details.
Detection Methods for CVE-2025-23272
Indicators of Compromise
- Unexpected crashes or segmentation faults in processes that link libnvjpeg during JPEG decoding
- GPU workload failures or CUDA runtime errors correlated with specific input images
- Anomalous JPEG files in image intake directories containing malformed segment markers or length fields
Detection Strategies
- Monitor application and container logs for repeated nvJPEG decode errors from the same source or user
- Inventory hosts and container images for CUDA Toolkit and nvJPEG versions to identify unpatched installations
- Scan image upload pipelines with JPEG structural validators to flag files with inconsistent segment lengths
Monitoring Recommendations
- Alert on process termination events for ML inference and image processing services tied to GPU hosts
- Track CUDA driver and runtime version reporting across the fleet to confirm patch deployment
- Correlate image ingestion telemetry with decoder error rates to surface targeted probing
How to Mitigate CVE-2025-23272
Immediate Actions Required
- Identify all systems with NVIDIA CUDA Toolkit or standalone nvJPEG installations and record current versions
- Apply the fixed nvJPEG release referenced in the NVIDIA Support Article as soon as it is validated in your environment
- Restrict which users and services can submit JPEG inputs to GPU-accelerated decoding pipelines
Patch Information
NVIDIA has published remediation guidance in security bulletin NVIDIA Support Answer 5661. Review the bulletin for the specific fixed versions of nvJPEG and the CUDA Toolkit that address CVE-2025-23272, and update affected hosts and container base images accordingly. See the NVD entry for CVE-2025-23272 and the CVE.org record for authoritative references.
Workarounds
- Validate JPEG inputs with a hardened parser before passing them to nvJPEG, rejecting files with malformed markers or inconsistent segment lengths
- Sandbox GPU decoding workloads in isolated processes or containers to limit information disclosure if a crash occurs
- Fall back to a CPU-based JPEG decoder for untrusted inputs until patched nvJPEG builds are deployed
# Check installed CUDA Toolkit version to assess exposure
nvcc --version
dpkg -l | grep -Ei 'cuda|nvjpeg'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

