{
  "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-47334",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2021-47334",
    "idYear": 2021,
    "status": "PUBLISHED",
    "publishedAt": "2024-05-21T14:35:44.404Z",
    "updatedAt": "2026-05-11T13:52:37.429Z",
    "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": "misc/libmasm/module: Fix two use after free in ibmasm_init_one",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nmisc/libmasm/module: Fix two use after free in ibmasm_init_one\n\nIn ibmasm_init_one, it calls ibmasm_init_remote_input_dev().\nInside ibmasm_init_remote_input_dev, mouse_dev and keybd_dev are\nallocated by input_allocate_device(), and assigned to\nsp->remote.mouse_dev and sp->remote.keybd_dev respectively.\n\nIn the err_free_devices error branch of ibmasm_init_one,\nmouse_dev and keybd_dev are freed by input_free_device(), and return\nerror. Then the execution runs into error_send_message error branch\nof ibmasm_init_one, where ibmasm_free_remote_input_dev(sp) is called\nto unregister the freed sp->remote.mouse_dev and sp->remote.keybd_dev.\n\nMy patch add a \"error_init_remote\" label to handle the error of\nibmasm_init_remote_input_dev(), to avoid the uaf bugs.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "1512e7dc5eb08b7d92a12e2bfcd9cb8c4a1ec069"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "29ba8e2ba89ee2862a26d91204dd5fe77ceee25a"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "5b06ca113bf197aab2ab61288f42506e0049fbab"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "481a76d4749ee3a27f902ba213fdcbb4bb39720e"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "38660031e80eaa6cc9370b031c180612f414b00d"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b9c87ce3bc6331f82811a8cf8e930423c22523a3"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ef1067d2baa847d53c9988510d99fb494de4d12c"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a7268e8a227d5a4f0bd1584f556246b0224ab274"
            },
            {
              "version": "736ce43295682d060f2b93624b4a339f9af6aab1",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7272b591c4cb9327c43443f67b8fbae7657dd9ae"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.16",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.16"
            },
            {
              "version": "4.4.276",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.4.*"
            },
            {
              "version": "4.9.276",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.9.*"
            },
            {
              "version": "4.14.240",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.14.*"
            },
            {
              "version": "4.19.198",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.134",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.52",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.12.19",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.12.*"
            },
            {
              "version": "5.13.4",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.13.*"
            },
            {
              "version": "5.14",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}