CVE-2025-37825
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-37825 is a vulnerability discovered in the Linux kernel's NVMe target subsystem, specifically related to an out-of-bounds access in nvmetenableport. The vulnerability was disclosed on May 8, 2025, affecting various Linux distributions and their kernel implementations (NVD, Wiz).

Technical details

The vulnerability occurs when nvmetenableport() uses NVMFTRTYPEMAX (255) to query the transports array, causing an out-of-bounds access. This issue manifests with error messages including 'BUG: KASAN: global-out-of-bounds in nvmetenableport+0x42/0x1da' and 'Read of size 8 at addr ffffffff89dafa58'. The root cause traces back to commit 200adac75888, where NVMFTRTYPEMAX became the default state as configured by nvmetportsmake() (NVD, Red Hat).

Impact

The vulnerability leads to an out-of-bounds access in the Linux kernel's NVMe target subsystem, which could potentially result in system instability or information disclosure (Wiz).

Mitigation and workarounds

The fix involves checking for NVMFTRTYPEMAX before proceeding with the operation. This prevents the out-of-bounds access by validating the transport type before attempting to access the transports array (NVD).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management