{"id":"CVE-2025-37825","summary":"nvmet: fix out-of-bounds access in nvmet_enable_port","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: fix out-of-bounds access in nvmet_enable_port\n\nWhen trying to enable a port that has no transport configured yet,\nnvmet_enable_port() uses NVMF_TRTYPE_MAX (255) to query the transports\narray, causing an out-of-bounds access:\n\n[  106.058694] BUG: KASAN: global-out-of-bounds in nvmet_enable_port+0x42/0x1da\n[  106.058719] Read of size 8 at addr ffffffff89dafa58 by task ln/632\n[...]\n[  106.076026] nvmet: transport type 255 not supported\n\nSince commit 200adac75888, NVMF_TRTYPE_MAX is the default state as configured by\nnvmet_ports_make().\nAvoid this by checking for NVMF_TRTYPE_MAX before proceeding.","modified":"2026-04-02T12:47:31.187372Z","published":"2025-05-08T06:26:18.094Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37825.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3d7aa0c7b4e96cd460826d932e44710cdeb3378b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/83c00860a37b3fcba8026cb344101f1b8af547cf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37825.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37825"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"200adac75888182c09027e9b7852507dabd87034"},{"fixed":"83c00860a37b3fcba8026cb344101f1b8af547cf"},{"fixed":"3d7aa0c7b4e96cd460826d932e44710cdeb3378b"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37825.json"}}],"schema_version":"1.7.5"}