{
  "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-31705",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31705",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-05-01T13:56:03.896Z",
    "updatedAt": "2026-10-15T01:18:03.133Z",
    "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": "ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment\n\nsmb2_get_ea() applies 4-byte alignment padding via memset() after\nwriting each EA entry. The bounds check on buf_free_len is performed\nbefore the value memcpy, but the alignment memset fires unconditionally\nafterward with no check on remaining space.\n\nWhen the EA value exactly fills the remaining buffer (buf_free_len == 0\nafter value subtraction), the alignment memset writes 1-3 NUL bytes\npast the buf_free_len boundary. In compound requests where the response\nbuffer is shared across commands, the first command (e.g., READ) can\nconsume most of the buffer, leaving a tight remainder for the QUERY_INFO\nEA response. The alignment memset then overwrites past the physical\nkvmalloc allocation into adjacent kernel heap memory.\n\nAdd a bounds check before the alignment memset to ensure buf_free_len\ncan accommodate the padding bytes.\n\nThis is the same bug pattern fixed by commit beef2634f81f (\"ksmbd: fix\npotencial OOB in get_file_all_info() for compound requests\") and\ncommit fda9522ed6af (\"ksmbd: fix OOB write in QUERY_INFO for compound\nrequests\"), both of which added bounds checks before unconditional\nwrites in QUERY_INFO response handlers.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "9f297df20d93411c0b4ddad7f88ba04a7cd36e77",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ddbbc8b2a09dd2cfed90871313e3691ae1db08a2"
            },
            {
              "version": "e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ffbce350c6fd1e99116ea57383b9031717e36d3b"
            },
            {
              "version": "e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "98f3de6ef4efbd899348d333f0902dc4ff14380c"
            },
            {
              "version": "e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "790304c02bf9bd7b8171feda4294d6e62d32ae8f"
            },
            {
              "version": "e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "922d48fe8c19f388ffa2f709f33acaae4e408de2"
            },
            {
              "version": "e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d",
              "status": "affected",
              "versionType": "git",
              "lessThan": "30010c952077a1c89ecdd71fc4d574c75a8f5617"
            },
            {
              "version": "f2283680a80571ca82d710bc6ecd8f8beac67d63",
              "status": "affected",
              "versionType": "git"
            },
            {
              "version": "6.1.71",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "6.1.175"
            },
            {
              "version": "5.15.145",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "5.16"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "6.6",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "6.6"
            },
            {
              "version": "6.1.175",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.136",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.84",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.25",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "7.0.2",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.0.*"
            },
            {
              "version": "7.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}