{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "USB: gadget: bRequestType is a bitfield, not a enum\n\nSzymon rightly pointed out that the previous check for the endpoint\ndirection in bRequestType was not looking at only the bit involved, but\nrather the whole value.  Normally this is ok, but for some request\ntypes, bits other than bit 8 could be set and the check for the endpoint\nlength could not stall correctly.\n\nFix that up by only checking the single bit."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "versions": [
                  {
                     "version": "93cd7100fe47",
                     "lessThan": "2983866fc137",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "d2ca6859ea96",
                     "lessThan": "4dbf2224984f",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "e7c8afee1491",
                     "lessThan": "9b3a3a363591",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "13e45e7a262d",
                     "lessThan": "05da4194e81a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "fd6de5a0cd42",
                     "lessThan": "aae3448b78d9",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "7193ad3e50e5",
                     "lessThan": "2b54f485f2c1",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "36dfdf11af49",
                     "lessThan": "abd3a33b3f2b",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "versions": [
                  {
                     "version": "4.4.295",
                     "lessThan": "4.4.296",
                     "status": "affected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.9.293",
                     "lessThan": "4.9.294",
                     "status": "affected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.258",
                     "lessThan": "4.14.259",
                     "status": "affected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.221",
                     "lessThan": "4.19.222",
                     "status": "affected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.165",
                     "lessThan": "5.4.168",
                     "status": "affected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.85",
                     "lessThan": "5.10.88",
                     "status": "affected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.8",
                     "lessThan": "5.15.11",
                     "status": "affected",
                     "versionType": "custom"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/2983866fc137"
            },
            {
               "url": "https://git.kernel.org/stable/c/4dbf2224984f"
            },
            {
               "url": "https://git.kernel.org/stable/c/9b3a3a363591"
            },
            {
               "url": "https://git.kernel.org/stable/c/05da4194e81a"
            },
            {
               "url": "https://git.kernel.org/stable/c/aae3448b78d9"
            },
            {
               "url": "https://git.kernel.org/stable/c/2b54f485f2c1"
            },
            {
               "url": "https://git.kernel.org/stable/c/abd3a33b3f2b"
            }
         ],
         "title": "USB: gadget: bRequestType is a bitfield, not a enum",
         "x_generator": {
            "engine": "bippy-c4875b56942e"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2021-47181",
      "requesterUserId": "gregkh@linuxfoundation.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
