{
  "cveId": "CVE-2021-47012",
  "url": "https://patchblox.com/security/cve/CVE-2021-47012",
  "summary": "CVE-2021-47012 is fixed in linux on 1 platform, first by DEBIAN-CVE-2021-47012, released February 28, 2024. It is not reported as exploited. Patch Radar priority: High.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  RDMA/siw: Fix a use after free in siw_alloc_mr...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  RDMA/siw: Fix a use after free in siw_alloc_mr  Our code analyzer reported a UAF.  In siw_alloc_mr(), it calls siw_mr_add_mem(mr,..). In the implementation of siw_mr_add_mem(), mem is assigned to mr-\u003Emem and then mem is freed via kfree(mem) if xa_alloc_cyclic() failed. Here, mr-\u003Emem still point to a freed object. After, the execution continue up to the err_out branch of siw_alloc_mr, and the freed mr-\u003Emem is used in siw_mr_drop_mem(mr).  My patch moves \u0022mr-\u003Emem = mem\u0022 behind the if (xa_alloc_cyclic(..)\u003C0) {} section, to avoid the uaf.",
  "published": "2024-02-28T09:15:38Z",
  "severity": "high",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "epss": 0.0027,
  "epssPercentile": 0.19389,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-47012",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47012",
      "released": "2024-02-28T09:15:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-47012",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47012",
      "released": "2024-02-28T09:15:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "5.10.38-1",
      "fix": "DEBIAN-CVE-2021-47012",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47012",
      "released": "2024-02-28T09:15:38Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T19:12:23Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}