CVE-2021-47523 (GCVE-0-2021-47523)

Vulnerability from cvelistv5 – Published: 2024-05-24 15:09 – Updated: 2026-05-11 13:56
VLAI
Title
IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr
Summary
In the Linux kernel, the following vulnerability has been resolved: IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr This buffer is currently allocated in hfi1_init(): if (reinit) ret = init_after_reset(dd); else ret = loadtime_init(dd); if (ret) goto done; /* allocate dummy tail memory for all receive contexts */ dd->rcvhdrtail_dummy_kvaddr = dma_alloc_coherent(&dd->pcidev->dev, sizeof(u64), &dd->rcvhdrtail_dummy_dma, GFP_KERNEL); if (!dd->rcvhdrtail_dummy_kvaddr) { dd_dev_err(dd, "cannot allocate dummy tail memory\n"); ret = -ENOMEM; goto done; } The reinit triggered path will overwrite the old allocation and leak it. Fix by moving the allocation to hfi1_alloc_devdata() and the deallocation to hfi1_free_devdata().
Severity
No CVSS data available.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 46b010d3eeb8eb29c740c4ef09c666485f5c07e6 , < 2c08271f4ed0e24633b3f81ceff61052b9d45efc (git)
Affected: 46b010d3eeb8eb29c740c4ef09c666485f5c07e6 , < 834d0fb978643eaf09da425de197cc16a7c2761b (git)
Affected: 46b010d3eeb8eb29c740c4ef09c666485f5c07e6 , < 60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1 (git)
Create a notification for this product.
Linux Linux Affected: 4.5
Unaffected: 0 , < 4.5 (semver)
Unaffected: 5.10.85 , ≤ 5.10.* (semver)
Unaffected: 5.15.8 , ≤ 5.15.* (semver)
Unaffected: 5.16 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2021-47523",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-24T19:17:45.550563Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:14:34.257Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T05:39:59.792Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/hw/hfi1/init.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2c08271f4ed0e24633b3f81ceff61052b9d45efc",
              "status": "affected",
              "version": "46b010d3eeb8eb29c740c4ef09c666485f5c07e6",
              "versionType": "git"
            },
            {
              "lessThan": "834d0fb978643eaf09da425de197cc16a7c2761b",
              "status": "affected",
              "version": "46b010d3eeb8eb29c740c4ef09c666485f5c07e6",
              "versionType": "git"
            },
            {
              "lessThan": "60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1",
              "status": "affected",
              "version": "46b010d3eeb8eb29c740c4ef09c666485f5c07e6",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/hw/hfi1/init.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.5"
            },
            {
              "lessThan": "4.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.85",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.16",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.85",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.8",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nIB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr\n\nThis buffer is currently allocated in hfi1_init():\n\n\tif (reinit)\n\t\tret = init_after_reset(dd);\n\telse\n\t\tret = loadtime_init(dd);\n\tif (ret)\n\t\tgoto done;\n\n\t/* allocate dummy tail memory for all receive contexts */\n\tdd-\u003ercvhdrtail_dummy_kvaddr = dma_alloc_coherent(\u0026dd-\u003epcidev-\u003edev,\n\t\t\t\t\t\t\t sizeof(u64),\n\t\t\t\t\t\t\t \u0026dd-\u003ercvhdrtail_dummy_dma,\n\t\t\t\t\t\t\t GFP_KERNEL);\n\n\tif (!dd-\u003ercvhdrtail_dummy_kvaddr) {\n\t\tdd_dev_err(dd, \"cannot allocate dummy tail memory\\n\");\n\t\tret = -ENOMEM;\n\t\tgoto done;\n\t}\n\nThe reinit triggered path will overwrite the old allocation and leak it.\n\nFix by moving the allocation to hfi1_alloc_devdata() and the deallocation\nto hfi1_free_devdata()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T13:56:18.648Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc"
        },
        {
          "url": "https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b"
        },
        {
          "url": "https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1"
        }
      ],
      "title": "IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2021-47523",
    "datePublished": "2024-05-24T15:09:36.045Z",
    "dateReserved": "2024-05-24T15:02:54.825Z",
    "dateUpdated": "2026-05-11T13:56:18.648Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2021-47523",
      "date": "2026-06-19",
      "epss": "0.00239",
      "percentile": "0.14674"
    },
    "fkie_nvd": {
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nIB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr\\n\\nThis buffer is currently allocated in hfi1_init():\\n\\n\\tif (reinit)\\n\\t\\tret = init_after_reset(dd);\\n\\telse\\n\\t\\tret = loadtime_init(dd);\\n\\tif (ret)\\n\\t\\tgoto done;\\n\\n\\t/* allocate dummy tail memory for all receive contexts */\\n\\tdd-\u003ercvhdrtail_dummy_kvaddr = dma_alloc_coherent(\u0026dd-\u003epcidev-\u003edev,\\n\\t\\t\\t\\t\\t\\t\\t sizeof(u64),\\n\\t\\t\\t\\t\\t\\t\\t \u0026dd-\u003ercvhdrtail_dummy_dma,\\n\\t\\t\\t\\t\\t\\t\\t GFP_KERNEL);\\n\\n\\tif (!dd-\u003ercvhdrtail_dummy_kvaddr) {\\n\\t\\tdd_dev_err(dd, \\\"cannot allocate dummy tail memory\\\\n\\\");\\n\\t\\tret = -ENOMEM;\\n\\t\\tgoto done;\\n\\t}\\n\\nThe reinit triggered path will overwrite the old allocation and leak it.\\n\\nFix by moving the allocation to hfi1_alloc_devdata() and the deallocation\\nto hfi1_free_devdata().\"}, {\"lang\": \"es\", \"value\": \"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: IB/hfi1: Correcci\\u00f3n de fuga de rcvhdrtail_dummy_kvaddr. Este b\\u00fafer est\\u00e1 actualmente asignado en hfi1_init(): if (reinit) ret = init_after_reset(dd); de lo contrario ret = loadtime_init(dd); si (ret) ir a hecho; /* asigna memoria de cola ficticia para todos los contextos de recepci\\u00f3n */ dd-\u0026gt;rcvhdrtail_dummy_kvaddr = dma_alloc_coherent(\u0026amp;dd-\u0026gt;pcidev-\u0026gt;dev, sizeof(u64), \u0026amp;dd-\u0026gt;rcvhdrtail_dummy_dma, GFP_KERNEL); if (!dd-\u0026gt;rcvhdrtail_dummy_kvaddr) { dd_dev_err(dd, \\\"no se puede asignar memoria de cola ficticia\\\\n\\\"); ret = -ENOMEM; ir a hacer; } La ruta activada por reinicio sobrescribir\\u00e1 la asignaci\\u00f3n anterior y la filtrar\\u00e1. Para solucionarlo, mueva la asignaci\\u00f3n a hfi1_alloc_devdata() y la desasignaci\\u00f3n a hfi1_free_devdata().\"}]",
      "id": "CVE-2021-47523",
      "lastModified": "2024-11-21T06:36:26.670",
      "published": "2024-05-24T15:15:14.743",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Awaiting Analysis"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2021-47523\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-24T15:15:14.743\",\"lastModified\":\"2025-09-24T19:38:33.050\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nIB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr\\n\\nThis buffer is currently allocated in hfi1_init():\\n\\n\\tif (reinit)\\n\\t\\tret = init_after_reset(dd);\\n\\telse\\n\\t\\tret = loadtime_init(dd);\\n\\tif (ret)\\n\\t\\tgoto done;\\n\\n\\t/* allocate dummy tail memory for all receive contexts */\\n\\tdd-\u003ercvhdrtail_dummy_kvaddr = dma_alloc_coherent(\u0026dd-\u003epcidev-\u003edev,\\n\\t\\t\\t\\t\\t\\t\\t sizeof(u64),\\n\\t\\t\\t\\t\\t\\t\\t \u0026dd-\u003ercvhdrtail_dummy_dma,\\n\\t\\t\\t\\t\\t\\t\\t GFP_KERNEL);\\n\\n\\tif (!dd-\u003ercvhdrtail_dummy_kvaddr) {\\n\\t\\tdd_dev_err(dd, \\\"cannot allocate dummy tail memory\\\\n\\\");\\n\\t\\tret = -ENOMEM;\\n\\t\\tgoto done;\\n\\t}\\n\\nThe reinit triggered path will overwrite the old allocation and leak it.\\n\\nFix by moving the allocation to hfi1_alloc_devdata() and the deallocation\\nto hfi1_free_devdata().\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: IB/hfi1: Correcci\u00f3n de fuga de rcvhdrtail_dummy_kvaddr. Este b\u00fafer est\u00e1 actualmente asignado en hfi1_init(): if (reinit) ret = init_after_reset(dd); de lo contrario ret = loadtime_init(dd); si (ret) ir a hecho; /* asigna memoria de cola ficticia para todos los contextos de recepci\u00f3n */ dd-\u0026gt;rcvhdrtail_dummy_kvaddr = dma_alloc_coherent(\u0026amp;dd-\u0026gt;pcidev-\u0026gt;dev, sizeof(u64), \u0026amp;dd-\u0026gt;rcvhdrtail_dummy_dma, GFP_KERNEL); if (!dd-\u0026gt;rcvhdrtail_dummy_kvaddr) { dd_dev_err(dd, \\\"no se puede asignar memoria de cola ficticia\\\\n\\\"); ret = -ENOMEM; ir a hacer; } La ruta activada por reinicio sobrescribir\u00e1 la asignaci\u00f3n anterior y la filtrar\u00e1. Para solucionarlo, mueva la asignaci\u00f3n a hfi1_alloc_devdata() y la desasignaci\u00f3n a hfi1_free_devdata().\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.5\",\"versionEndExcluding\":\"5.10.85\",\"matchCriteriaId\":\"FB0FAB17-52FB-4BF3-B486-EFF245B0651B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.8\",\"matchCriteriaId\":\"6664ACE2-F748-4AE5-B98B-58803B0B2C3E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"357AA433-37E8-4323-BFB2-3038D6E4B414\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.16:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"A73429BA-C2D9-4D0C-A75F-06A1CA8B3983\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.16:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"F621B5E3-E99D-49E7-90B9-EC3B77C95383\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:5.16:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"F7BFDCAA-1650-49AA-8462-407DD593F94F\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:39:59.792Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47523\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-24T19:17:45.550563Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-24T19:17:51.484Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"IB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"46b010d3eeb8eb29c740c4ef09c666485f5c07e6\", \"lessThan\": \"2c08271f4ed0e24633b3f81ceff61052b9d45efc\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"46b010d3eeb8eb29c740c4ef09c666485f5c07e6\", \"lessThan\": \"834d0fb978643eaf09da425de197cc16a7c2761b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"46b010d3eeb8eb29c740c4ef09c666485f5c07e6\", \"lessThan\": \"60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/infiniband/hw/hfi1/init.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.5\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.5\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.10.85\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.8\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.16\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/infiniband/hw/hfi1/init.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/2c08271f4ed0e24633b3f81ceff61052b9d45efc\"}, {\"url\": \"https://git.kernel.org/stable/c/834d0fb978643eaf09da425de197cc16a7c2761b\"}, {\"url\": \"https://git.kernel.org/stable/c/60a8b5a1611b4a26de4839ab9c1fc2a9cf3e17c1\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nIB/hfi1: Fix leak of rcvhdrtail_dummy_kvaddr\\n\\nThis buffer is currently allocated in hfi1_init():\\n\\n\\tif (reinit)\\n\\t\\tret = init_after_reset(dd);\\n\\telse\\n\\t\\tret = loadtime_init(dd);\\n\\tif (ret)\\n\\t\\tgoto done;\\n\\n\\t/* allocate dummy tail memory for all receive contexts */\\n\\tdd-\u003ercvhdrtail_dummy_kvaddr = dma_alloc_coherent(\u0026dd-\u003epcidev-\u003edev,\\n\\t\\t\\t\\t\\t\\t\\t sizeof(u64),\\n\\t\\t\\t\\t\\t\\t\\t \u0026dd-\u003ercvhdrtail_dummy_dma,\\n\\t\\t\\t\\t\\t\\t\\t GFP_KERNEL);\\n\\n\\tif (!dd-\u003ercvhdrtail_dummy_kvaddr) {\\n\\t\\tdd_dev_err(dd, \\\"cannot allocate dummy tail memory\\\\n\\\");\\n\\t\\tret = -ENOMEM;\\n\\t\\tgoto done;\\n\\t}\\n\\nThe reinit triggered path will overwrite the old allocation and leak it.\\n\\nFix by moving the allocation to hfi1_alloc_devdata() and the deallocation\\nto hfi1_free_devdata().\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.85\", \"versionStartIncluding\": \"4.5\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.8\", \"versionStartIncluding\": \"4.5\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.16\", \"versionStartIncluding\": \"4.5\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T07:12:48.778Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2021-47523\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T07:12:48.778Z\", \"dateReserved\": \"2024-05-24T15:02:54.825Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-24T15:09:36.045Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…