{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-68366",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-68366",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-12-24T10:32:53.399Z",
    "updatedAt": "2026-06-16T19:12:35.384Z",
    "importedAt": "2026-10-24T01:57:44.935Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "nbd: defer config unlock in nbd_genl_connect",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: defer config unlock in nbd_genl_connect\n\nThere is one use-after-free warning when running NBD_CMD_CONNECT and\nNBD_CLEAR_SOCK:\n\nnbd_genl_connect\n  nbd_alloc_and_init_config // config_refs=1\n  nbd_start_device // config_refs=2\n  set NBD_RT_HAS_CONFIG_REF\t\t\topen nbd // config_refs=3\n  recv_work done // config_refs=2\n\t\t\t\t\t\tNBD_CLEAR_SOCK // config_refs=1\n\t\t\t\t\t\tclose nbd // config_refs=0\n  refcount_inc -> uaf\n\n------------[ cut here ]------------\nrefcount_t: addition on 0; use-after-free.\nWARNING: CPU: 24 PID: 1014 at lib/refcount.c:25 refcount_warn_saturate+0x12e/0x290\n nbd_genl_connect+0x16d0/0x1ab0\n genl_family_rcv_msg_doit+0x1f3/0x310\n genl_rcv_msg+0x44a/0x790\n\nThe issue can be easily reproduced by adding a small delay before\nrefcount_inc(&nbd->config_refs) in nbd_genl_connect():\n\n        mutex_unlock(&nbd->config_lock);\n        if (!ret) {\n                set_bit(NBD_RT_HAS_CONFIG_REF, &config->runtime_flags);\n+               printk(\"before sleep\\n\");\n+               mdelay(5 * 1000);\n+               printk(\"after sleep\\n\");\n                refcount_inc(&nbd->config_refs);\n                nbd_connect_reply(info, nbd->index);\n        }",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "330d688a5ca53857828081a3cf31b92ad1b0b3ed"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "cd93db1b1b4460e6ee77564024ea461e5940f69c"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ae3e7bc1f4b393ae20e5c85583eb2c6977374716"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2e5e0665a594f076ef2b9439447bae8be293d09d"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c9b99c948b4fb014812afe7b5ccf2db121d22e46"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "9a38306643874566d20f7aba7dff9e6f657b51a9"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c9e805f6a35d1dd189a9345595a5c20e87611942"
            },
            {
              "version": "e46c7287b1c27683a8e30ca825fb98e2b97f1099",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1649714b930f9ea6233ce0810ba885999da3b5d4"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.12",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.12"
            },
            {
              "version": "5.10.248",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.198",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.160",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.120",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.63",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.17.13",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18.2",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "6.19",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}