CVE-2021-47361 (GCVE-0-2021-47361)

Vulnerability from cvelistv5 – Published: 2024-05-21 15:03 – Updated: 2025-05-04 07:09
VLAI?
Title
mcb: fix error handling in mcb_alloc_bus()
Summary
In the Linux kernel, the following vulnerability has been resolved: mcb: fix error handling in mcb_alloc_bus() There are two bugs: 1) If ida_simple_get() fails then this code calls put_device(carrier) but we haven't yet called get_device(carrier) and probably that leads to a use after free. 2) After device_initialize() then we need to use put_device() to release the bus. This will free the internal resources tied to the device and call mcb_free_bus() which will free the rest.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 8a558261fa57a6deefb0925ab1829f698b194aea (git)
Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 115b07d9f47e3996430b8f2007edd9768e1f807f (git)
Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 66f74ba9be9daf9c47fface6af3677f602774f6b (git)
Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 7751f609eadf36b1f53712bae430019c53a16eb0 (git)
Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 91e4ad05bf18322b5921d1a6c9b603f6eb1694f0 (git)
Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 9fc198f415dee070a1de957bb5bf5921d8df3499 (git)
Affected: 18d28819809909c3f24bb72183a901c5e332a63d , < 25a1433216489de4abc889910f744e952cb6dbae (git)
Create a notification for this product.
    Linux Linux Affected: 4.7
Unaffected: 0 , < 4.7 (semver)
Unaffected: 4.9.285 , ≤ 4.9.* (semver)
Unaffected: 4.14.249 , ≤ 4.14.* (semver)
Unaffected: 4.19.209 , ≤ 4.19.* (semver)
Unaffected: 5.4.150 , ≤ 5.4.* (semver)
Unaffected: 5.10.70 , ≤ 5.10.* (semver)
Unaffected: 5.14.9 , ≤ 5.14.* (semver)
Unaffected: 5.15 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2021-47361",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-21T18:23:29.755480Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-06-04T17:13:52.235Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-04T05:32:08.591Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/8a558261fa57a6deefb0925ab1829f698b194aea"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/115b07d9f47e3996430b8f2007edd9768e1f807f"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/66f74ba9be9daf9c47fface6af3677f602774f6b"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/7751f609eadf36b1f53712bae430019c53a16eb0"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/91e4ad05bf18322b5921d1a6c9b603f6eb1694f0"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/9fc198f415dee070a1de957bb5bf5921d8df3499"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/25a1433216489de4abc889910f744e952cb6dbae"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/mcb/mcb-core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8a558261fa57a6deefb0925ab1829f698b194aea",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            },
            {
              "lessThan": "115b07d9f47e3996430b8f2007edd9768e1f807f",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            },
            {
              "lessThan": "66f74ba9be9daf9c47fface6af3677f602774f6b",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            },
            {
              "lessThan": "7751f609eadf36b1f53712bae430019c53a16eb0",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            },
            {
              "lessThan": "91e4ad05bf18322b5921d1a6c9b603f6eb1694f0",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            },
            {
              "lessThan": "9fc198f415dee070a1de957bb5bf5921d8df3499",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            },
            {
              "lessThan": "25a1433216489de4abc889910f744e952cb6dbae",
              "status": "affected",
              "version": "18d28819809909c3f24bb72183a901c5e332a63d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/mcb/mcb-core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.7"
            },
            {
              "lessThan": "4.7",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.285",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.249",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.150",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.70",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.14.*",
              "status": "unaffected",
              "version": "5.14.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.15",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.285",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.249",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.209",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.150",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.70",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.14.9",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15",
                  "versionStartIncluding": "4.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmcb: fix error handling in mcb_alloc_bus()\n\nThere are two bugs:\n1) If ida_simple_get() fails then this code calls put_device(carrier)\n   but we haven\u0027t yet called get_device(carrier) and probably that\n   leads to a use after free.\n2) After device_initialize() then we need to use put_device() to\n   release the bus.  This will free the internal resources tied to the\n   device and call mcb_free_bus() which will free the rest."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T07:09:21.641Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8a558261fa57a6deefb0925ab1829f698b194aea"
        },
        {
          "url": "https://git.kernel.org/stable/c/115b07d9f47e3996430b8f2007edd9768e1f807f"
        },
        {
          "url": "https://git.kernel.org/stable/c/66f74ba9be9daf9c47fface6af3677f602774f6b"
        },
        {
          "url": "https://git.kernel.org/stable/c/7751f609eadf36b1f53712bae430019c53a16eb0"
        },
        {
          "url": "https://git.kernel.org/stable/c/91e4ad05bf18322b5921d1a6c9b603f6eb1694f0"
        },
        {
          "url": "https://git.kernel.org/stable/c/9fc198f415dee070a1de957bb5bf5921d8df3499"
        },
        {
          "url": "https://git.kernel.org/stable/c/25a1433216489de4abc889910f744e952cb6dbae"
        }
      ],
      "title": "mcb: fix error handling in mcb_alloc_bus()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2021-47361",
    "datePublished": "2024-05-21T15:03:29.882Z",
    "dateReserved": "2024-05-21T14:58:30.809Z",
    "dateUpdated": "2025-05-04T07:09:21.641Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/8a558261fa57a6deefb0925ab1829f698b194aea\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/115b07d9f47e3996430b8f2007edd9768e1f807f\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/66f74ba9be9daf9c47fface6af3677f602774f6b\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/7751f609eadf36b1f53712bae430019c53a16eb0\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/91e4ad05bf18322b5921d1a6c9b603f6eb1694f0\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/9fc198f415dee070a1de957bb5bf5921d8df3499\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/25a1433216489de4abc889910f744e952cb6dbae\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:32:08.591Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47361\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-21T18:23:29.755480Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:25.431Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"mcb: fix error handling in mcb_alloc_bus()\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"8a558261fa57a6deefb0925ab1829f698b194aea\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"115b07d9f47e3996430b8f2007edd9768e1f807f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"66f74ba9be9daf9c47fface6af3677f602774f6b\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"7751f609eadf36b1f53712bae430019c53a16eb0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"91e4ad05bf18322b5921d1a6c9b603f6eb1694f0\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"9fc198f415dee070a1de957bb5bf5921d8df3499\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"18d28819809909c3f24bb72183a901c5e332a63d\", \"lessThan\": \"25a1433216489de4abc889910f744e952cb6dbae\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/mcb/mcb-core.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.7\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.7\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.9.285\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.249\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.209\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.150\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.70\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.14.9\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.14.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/mcb/mcb-core.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/8a558261fa57a6deefb0925ab1829f698b194aea\"}, {\"url\": \"https://git.kernel.org/stable/c/115b07d9f47e3996430b8f2007edd9768e1f807f\"}, {\"url\": \"https://git.kernel.org/stable/c/66f74ba9be9daf9c47fface6af3677f602774f6b\"}, {\"url\": \"https://git.kernel.org/stable/c/7751f609eadf36b1f53712bae430019c53a16eb0\"}, {\"url\": \"https://git.kernel.org/stable/c/91e4ad05bf18322b5921d1a6c9b603f6eb1694f0\"}, {\"url\": \"https://git.kernel.org/stable/c/9fc198f415dee070a1de957bb5bf5921d8df3499\"}, {\"url\": \"https://git.kernel.org/stable/c/25a1433216489de4abc889910f744e952cb6dbae\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmcb: fix error handling in mcb_alloc_bus()\\n\\nThere are two bugs:\\n1) If ida_simple_get() fails then this code calls put_device(carrier)\\n   but we haven\u0027t yet called get_device(carrier) and probably that\\n   leads to a use after free.\\n2) After device_initialize() then we need to use put_device() to\\n   release the bus.  This will free the internal resources tied to the\\n   device and call mcb_free_bus() which will free the rest.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.9.285\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.14.249\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"4.19.209\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.150\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.70\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.14.9\", \"versionStartIncluding\": \"4.7\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15\", \"versionStartIncluding\": \"4.7\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T07:09:21.641Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2021-47361\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T07:09:21.641Z\", \"dateReserved\": \"2024-05-21T14:58:30.809Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-21T15:03:29.882Z\", \"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…

Sightings

Author Source Type Date

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…