{
  "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-2026-31749",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31749",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-05-01T14:14:42.227Z",
    "updatedAt": "2026-05-11T22:15:02.951Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "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": "comedi: ni_atmio16d: Fix invalid clean-up after failed attach",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: ni_atmio16d: Fix invalid clean-up after failed attach\n\nIf the driver's COMEDI \"attach\" handler function (`atmio16d_attach()`)\nreturns an error, the COMEDI core will call the driver's \"detach\"\nhandler function (`atmio16d_detach()`) to clean up.  This calls\n`reset_atmio16d()` unconditionally, but depending on where the error\noccurred in the attach handler, the device may not have been\nsufficiently initialized to call `reset_atmio16d()`.  It uses\n`dev->iobase` as the I/O port base address and `dev->private` as the\npointer to the COMEDI device's private data structure.  `dev->iobase`\nmay still be set to its initial value of 0, which would result in\nundesired writes to low I/O port addresses.  `dev->private` may still be\n`NULL`, which would result in null pointer dereferences.\n\nFix `atmio16d_detach()` by checking that `dev->private` is valid\n(non-null) before calling `reset_atmio16d()`.  This implies that\n`dev->iobase` was set correctly since that is set up before\n`dev->private`.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a01dd339ea6ac58b0967a50085622a6017351140"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "933a2d6a95f9bfb203e562c9be1dd990c735535c"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "5d8d88c8c0eec230de8f1f60e0920a4337939a88"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f517646e008fe99ca1800601cd011b110f8684ae"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3848ae00b1642e2c98ff8cbfd2d3b38c6f53b5c3"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "43c68a2c7cc35b7c2a83c285cb4ad3d472b8caa2"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d07d97ca4f7fac467cdcf4a012690853958b7e89"
            },
            {
              "version": "2323b276308a5da5774b778f39c7fd94b2a3022a",
              "status": "affected",
              "versionType": "git",
              "lessThan": "101ab946b79ad83b36d5cfd47de587492a80acf0"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.30",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.30"
            },
            {
              "version": "5.10.253",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.203",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.168",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.134",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.81",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.22",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "6.19.12",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.19.*"
            },
            {
              "version": "7.0",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}