{
  "id": "CVE-2025-37825",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37825",
  "published_at": "2025-05-08T06:26:18.094Z",
  "title": "nvmet: fix out-of-bounds access in nvmet_enable_port",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 200adac75888182c09027e9b7852507dabd87034, \u003c 83c00860a37b3fcba8026cb344101f1b8af547cf",
          "\u003e= 200adac75888182c09027e9b7852507dabd87034, \u003c 3d7aa0c7b4e96cd460826d932e44710cdeb3378b"
        ],
        "fixed_in": [
          "83c00860a37b3fcba8026cb344101f1b8af547cf",
          "3d7aa0c7b4e96cd460826d932e44710cdeb3378b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.14.5",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 83c00860a37b3fcba8026cb344101f1b8af547cf or 3d7aa0c7b4e96cd460826d932e44710cdeb3378b or later.",
      "Upgrade Linux to 0 or 6.14.5 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
