{
  "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-2021-47012",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47012",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-02-28T08:13:30.284Z",
    "updatedAt": "2026-08-05T08:45:33.281Z",
    "importedAt": "2026-10-24T01:56:36.661Z",
    "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": "RDMA/siw: Fix a use after free in siw_alloc_mr",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/siw: Fix a use after free in siw_alloc_mr\n\nOur code analyzer reported a UAF.\n\nIn siw_alloc_mr(), it calls siw_mr_add_mem(mr,..). In the implementation of\nsiw_mr_add_mem(), mem is assigned to mr->mem and then mem is freed via\nkfree(mem) if xa_alloc_cyclic() failed. Here, mr->mem still point to a\nfreed object. After, the execution continue up to the err_out branch of\nsiw_alloc_mr, and the freed mr->mem is used in siw_mr_drop_mem(mr).\n\nMy patch moves \"mr->mem = mem\" behind the if (xa_alloc_cyclic(..)<0) {}\nsection, to avoid the uaf.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "2251334dcac9eb337575d8767e2a6a7e81848f7f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "30b9e92d0b5e5d5dc1101ab856c17009537cbca4"
            },
            {
              "version": "2251334dcac9eb337575d8767e2a6a7e81848f7f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "608a4b90ece039940e9425ee2b39c8beff27e00c"
            },
            {
              "version": "2251334dcac9eb337575d8767e2a6a7e81848f7f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3e22b88e02c194f6c80867abfef5cc09383461f4"
            },
            {
              "version": "2251334dcac9eb337575d8767e2a6a7e81848f7f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ad9ce7188432650469a6c7625bf479f5ed0b6155"
            },
            {
              "version": "2251334dcac9eb337575d8767e2a6a7e81848f7f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "3093ee182f01689b89e9f8797b321603e5de4f63"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "5.3",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "5.3"
            },
            {
              "version": "5.4.119",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.37",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.11.21",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.11.*"
            },
            {
              "version": "5.12.4",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.12.*"
            },
            {
              "version": "5.13",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}