{
  "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-40331",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-40331",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-12-09T04:09:48.196Z",
    "updatedAt": "2026-08-05T12:09:40.498Z",
    "importedAt": "2026-10-24T01:57:34.152Z",
    "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": "sctp: Prevent TOCTOU out-of-bounds write",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nsctp: Prevent TOCTOU out-of-bounds write\n\nFor the following path not holding the sock lock,\n\n  sctp_diag_dump() -> sctp_for_each_endpoint() -> sctp_ep_dump()\n\nmake sure not to exceed bounds in case the address list has grown\nbetween buffer allocation (time-of-check) and write (time-of-use).",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b106a68df0650b694b254427cd9250c04500edd3"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3006959371007fc2eae4a078f823c680fa52de1a"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "72e3fea68eac8d088e44c3dd954e843478e9240e"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "584307275b2048991b2e8984962189b6cc0a9b85"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "c9119f243d9c0da3c3b5f577a328de3e7ffd1b42"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2fe08fcaacb7eb019fa9c81db39b2214de216677"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "89eac1e150dbd42963e13d23828cb8c4e0763196"
            },
            {
              "version": "8f840e47f190cbe61a96945c13e9551048d42cef",
              "status": "affected",
              "versionType": "git",
              "lessThan": "95aef86ab231f047bb8085c70666059b58f53c09"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.7",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.7"
            },
            {
              "version": "5.4.302",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.247",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.197",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.159",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.117",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.58",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.17.8",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}