← Back to CVE Explorer

CVE-2025-40171

Full vulnerability record from the local CVENow database.

Description

In the Linux kernel, the following vulnerability has been resolved: nvmet-fc: move lsop put work to nvmet_fc_ls_req_op It’s possible for more than one async command to be in flight from __nvmet_fc_send_ls_req. For each command, a tgtport reference is taken. In the current code, only one put work item is queued at a time, which results in a leaked reference. To fix this, move the work item to the nvmet_fc_ls_req_op struct, which already tracks all resources related to the command.

Severity
HIGH
CVSS score
7.5 (v3.1)
Vulnerability status
Deferred
Source identifier
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published
2025-11-12 11:15:47.513000
Last modified
2026-10-19 21:10:00.160000
View original CVE JSON
{
  "id": "CVE-2025-40171",
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "published": "2025-11-12T11:15:47.513",
  "lastModified": "2026-10-19T21:10:00.160",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet-fc: move lsop put work to nvmet_fc_ls_req_op\n\nIt’s possible for more than one async command to be in flight from\n__nvmet_fc_send_ls_req. For each command, a tgtport reference is taken.\n\nIn the current code, only one put work item is queued at a time, which\nresults in a leaked reference.\n\nTo fix this, move the work item to the nvmet_fc_ls_req_op struct, which\nalready tracks all resources related to the command."
    },
    {
      "lang": "es",
      "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnvmet-fc: mover el trabajo de 'put' de lsop a nvmet_fc_ls_req_op\n\nEs posible que más de un comando asíncrono esté en vuelo desde __nvmet_fc_send_ls_req. Para cada comando, se toma una referencia de tgtport.\n\nEn el código actual, solo un elemento de trabajo 'put' se encola a la vez, lo que resulta en una referencia filtrada.\n\nPara corregir esto, mover el elemento de trabajo a la estructura nvmet_fc_ls_req_op, la cual ya rastrea todos los recursos relacionados con el comando."
    }
  ],
  "affected": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "affectedData": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "programFiles": [
            "drivers/nvme/target/fc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "5e0bc09a52b6169ce90f7ac6e195791adb16cec4",
              "lessThan": "11269c08013f4ee8b8f5edc6c56700acb34092d0",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "9e6987f8937a7bd7516aa52f25cb7e12c0c92ee8",
              "lessThan": "a28112cc55013cd8cbd5d36b5115a5b851151bd9",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "eaf0971fdabf2a93c1429dc6bedf3bbe85dffa30",
              "lessThan": "060ecc81240ef9d60d9485a3a5eb55a0d6e7a25c",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "710c69dbaccdac312e32931abcb8499c1525d397",
              "lessThan": "7331925c247b03b7767b8cd93cfe1b7aa2377850",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "710c69dbaccdac312e32931abcb8499c1525d397",
              "lessThan": "7a619f8c869117ffed08365b377f66b7e1d941b4",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "710c69dbaccdac312e32931abcb8499c1525d397",
              "lessThan": "db5a5406fb7e5337a074385c7a3e53c77f2c1bd3",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "1d86f79287206deec36d63b89c741cf542b6cadd",
              "versionType": "git",
              "status": "affected"
            },
            {
              "version": "5.15.150",
              "lessThan": "5.15.195",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "6.1.80",
              "lessThan": "6.1.156",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "6.6.19",
              "lessThan": "6.6.112",
              "versionType": "semver",
              "status": "affected"
            },
            {
              "version": "6.7.7",
              "lessThan": "6.8",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "programFiles": [
            "drivers/nvme/target/fc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "versions": [
            {
              "version": "6.8",
              "status": "affected"
            },
            {
              "version": "0",
              "lessThan": "6.8",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "5.15.195",
              "lessThanOrEqual": "5.15.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.1.156",
              "lessThanOrEqual": "6.1.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.6.112",
              "lessThanOrEqual": "6.6.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.12.53",
              "lessThanOrEqual": "6.12.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.17.3",
              "lessThanOrEqual": "6.17.*",
              "versionType": "semver",
              "status": "unaffected"
            },
            {
              "version": "6.18",
              "lessThanOrEqual": "*",
              "versionType": "original_commit_for_fix",
              "status": "unaffected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
          "baseScore": 7.5,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "NONE",
          "integrityImpact": "NONE",
          "availabilityImpact": "HIGH"
        },
        "exploitabilityScore": 3.9,
        "impactScore": 3.6
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-10-15T21:57:33.774431Z",
          "id": "CVE-2025-40171",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "yes"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "references": [
    {
      "url": "https://git.kernel.org/stable/c/060ecc81240ef9d60d9485a3a5eb55a0d6e7a25c",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/11269c08013f4ee8b8f5edc6c56700acb34092d0",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/7331925c247b03b7767b8cd93cfe1b7aa2377850",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/7a619f8c869117ffed08365b377f66b7e1d941b4",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/a28112cc55013cd8cbd5d36b5115a5b851151bd9",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    },
    {
      "url": "https://git.kernel.org/stable/c/db5a5406fb7e5337a074385c7a3e53c77f2c1bd3",
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ]
}