CVE-2026-99714 (GCVE-0-2026-99714)

Vulnerability from cvelistv5 – Published: 2026-11-20 05:50 – Updated: 2026-11-20 05:50
VLAI
Title
nvme: Do not drop the cdev reference twice when cdev_device_add() fails
Summary
In the Linux kernel, the following vulnerability has been resolved: nvme: Do not drop the cdev reference twice when cdev_device_add() fails Since commit 9952f3882ecb ("nvme: fix cdev lifetime"), nvme_add_ns_cdev() and nvme_add_ns_head_cdev() take a reference to the namespace (or namespace head) before calling nvme_cdev_add(), to be dropped by the char device's release, nvme_cdev_rel(), and drop it themselves when nvme_cdev_add() fails. But when cdev_device_add() fails, nvme_cdev_add() has already put the device, and nvme_cdev_rel() has already dropped that reference: the caller drops it a second time. With one allocation failure injected into cdev_device_add() for a namespace on an NVMe over loop controller, deleting the controller gives, with native multipath: BUG: KASAN: slab-use-after-free in nvme_put_ns_head+0x21/0x140 Write of size 4 at addr ff1100000a4ea078 by task init/1 nvme_put_ns_head nvme_put_ns nvme_remove_namespaces nvme_do_delete_ctrl nvme_delete_ctrl_sync nvme_sysfs_delete Freed by task 1: kfree nvme_ns_remove nvme_remove_namespaces refcount_t: underflow; use-after-free. Take the reference in nvme_cdev_add() instead, right before cdev_device_add(), and let the callers neither take nor drop it. Add nvme_is_ns_cdev() for the check that nvme_cdev_rel() and nvme_cdev_add() now share.
Severity
No CVSS data available.
Impacted products
Vendor Product Version
Linux Linux Affected: 9952f3882ecba709092379b71e02b09762b26f96 , < 45d0c2d7d338ae1606984ed92d254ca0efcef921 (git)
Affected: 9952f3882ecba709092379b71e02b09762b26f96 , < 7dfe79db5615df8d37ae7de6d3ec099b71bf3e03 (git)
Affected: 98b09ad7934482e64db4b4477d91e3bbf43adf4c (git)
Affected: 7.2.10 , < 7.3 (semver)
Create a notification for this product.
Linux Linux Affected: 7.3
Unaffected: 0 , < 7.3 (semver)
Unaffected: 7.3.5 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/host/core.c",
            "drivers/nvme/host/multipath.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "45d0c2d7d338ae1606984ed92d254ca0efcef921",
              "status": "affected",
              "version": "9952f3882ecba709092379b71e02b09762b26f96",
              "versionType": "git"
            },
            {
              "lessThan": "7dfe79db5615df8d37ae7de6d3ec099b71bf3e03",
              "status": "affected",
              "version": "9952f3882ecba709092379b71e02b09762b26f96",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "98b09ad7934482e64db4b4477d91e3bbf43adf4c",
              "versionType": "git"
            },
            {
              "lessThan": "7.3",
              "status": "affected",
              "version": "7.2.10",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/nvme/host/core.c",
            "drivers/nvme/host/multipath.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.3"
            },
            {
              "lessThan": "7.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.5",
                  "versionStartIncluding": "7.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc2",
                  "versionStartIncluding": "7.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "7.2.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: Do not drop the cdev reference twice when cdev_device_add() fails\n\nSince commit 9952f3882ecb (\"nvme: fix cdev lifetime\"),\nnvme_add_ns_cdev() and nvme_add_ns_head_cdev() take a reference to the\nnamespace (or namespace head) before calling nvme_cdev_add(), to be\ndropped by the char device\u0027s release, nvme_cdev_rel(), and drop it\nthemselves when nvme_cdev_add() fails. But when cdev_device_add()\nfails, nvme_cdev_add() has already put the device, and nvme_cdev_rel()\nhas already dropped that reference: the caller drops it a second time.\n\nWith one allocation failure injected into cdev_device_add() for a\nnamespace on an NVMe over loop controller, deleting the controller\ngives, with native multipath:\n\n  BUG: KASAN: slab-use-after-free in nvme_put_ns_head+0x21/0x140\n  Write of size 4 at addr ff1100000a4ea078 by task init/1\n   nvme_put_ns_head\n   nvme_put_ns\n   nvme_remove_namespaces\n   nvme_do_delete_ctrl\n   nvme_delete_ctrl_sync\n   nvme_sysfs_delete\n  Freed by task 1:\n   kfree\n   nvme_ns_remove\n   nvme_remove_namespaces\n  refcount_t: underflow; use-after-free.\n\nTake the reference in nvme_cdev_add() instead, right before\ncdev_device_add(), and let the callers neither take nor drop it. Add\nnvme_is_ns_cdev() for the check that nvme_cdev_rel() and nvme_cdev_add()\nnow share."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-20T05:50:53.082Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/45d0c2d7d338ae1606984ed92d254ca0efcef921"
        },
        {
          "url": "https://git.kernel.org/stable/c/7dfe79db5615df8d37ae7de6d3ec099b71bf3e03"
        }
      ],
      "title": "nvme: Do not drop the cdev reference twice when cdev_device_add() fails",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99714",
    "datePublished": "2026-11-20T05:50:53.082Z",
    "dateReserved": "2026-09-25T10:25:14.430Z",
    "dateUpdated": "2026-11-20T05:50:53.082Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99714",
      "date": "2026-11-24",
      "epss": "0.00156",
      "percentile": "0.04677"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/nvme/host/core.c",
                  "drivers/nvme/host/multipath.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "45d0c2d7d338ae1606984ed92d254ca0efcef921",
                    "status": "affected",
                    "version": "9952f3882ecba709092379b71e02b09762b26f96",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7dfe79db5615df8d37ae7de6d3ec099b71bf3e03",
                    "status": "affected",
                    "version": "9952f3882ecba709092379b71e02b09762b26f96",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "98b09ad7934482e64db4b4477d91e3bbf43adf4c",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7.3",
                    "status": "affected",
                    "version": "7.2.10",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/nvme/host/core.c",
                  "drivers/nvme/host/multipath.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "7.3"
                  },
                  {
                    "lessThan": "7.3",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvme: Do not drop the cdev reference twice when cdev_device_add() fails\n\nSince commit 9952f3882ecb (\"nvme: fix cdev lifetime\"),\nnvme_add_ns_cdev() and nvme_add_ns_head_cdev() take a reference to the\nnamespace (or namespace head) before calling nvme_cdev_add(), to be\ndropped by the char device\u0027s release, nvme_cdev_rel(), and drop it\nthemselves when nvme_cdev_add() fails. But when cdev_device_add()\nfails, nvme_cdev_add() has already put the device, and nvme_cdev_rel()\nhas already dropped that reference: the caller drops it a second time.\n\nWith one allocation failure injected into cdev_device_add() for a\nnamespace on an NVMe over loop controller, deleting the controller\ngives, with native multipath:\n\n  BUG: KASAN: slab-use-after-free in nvme_put_ns_head+0x21/0x140\n  Write of size 4 at addr ff1100000a4ea078 by task init/1\n   nvme_put_ns_head\n   nvme_put_ns\n   nvme_remove_namespaces\n   nvme_do_delete_ctrl\n   nvme_delete_ctrl_sync\n   nvme_sysfs_delete\n  Freed by task 1:\n   kfree\n   nvme_ns_remove\n   nvme_remove_namespaces\n  refcount_t: underflow; use-after-free.\n\nTake the reference in nvme_cdev_add() instead, right before\ncdev_device_add(), and let the callers neither take nor drop it. Add\nnvme_is_ns_cdev() for the check that nvme_cdev_rel() and nvme_cdev_add()\nnow share."
          }
        ],
        "id": "CVE-2026-99714",
        "lastModified": "2026-11-20T06:18:07.677",
        "metrics": {},
        "published": "2026-11-20T06:18:07.677",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/45d0c2d7d338ae1606984ed92d254ca0efcef921"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7dfe79db5615df8d37ae7de6d3ec099b71bf3e03"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-24T23:21:51+00:00",
      "cve": "CVE-2026-99714",
      "id": "CVE-2026-99714",
      "initial_release_date": "2026-11-20T05:50:53.082000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via use-after-free in NVMe subsystem",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99714.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-11-21T00:36:00Z",
      "cve": "CVE-2026-99714",
      "id": "CVE-2026-99714",
      "initial_release_date": "2026-11-20T17:41:36Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-99714",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99714.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…