{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nIB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields\n\nOverflowing either addrlimit or bytes_togo can allow userspace to trigger\na buffer overflow of kernel memory. Check for overflows in all the places\ndoing math on user controlled buffers."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/infiniband/hw/qib/qib_user_sdma.c"
               ],
               "versions": [
                  {
                     "version": "f931551bafe1",
                     "lessThan": "bda41654b6e0",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "3f57c3f67fd9",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "60833707b968",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "73d2892148aa",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "0f8cdfff0682",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "c3e17e58f571",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "0d4395477741",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "f931551bafe1",
                     "lessThan": "d39bf40e55e6",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/infiniband/hw/qib/qib_user_sdma.c"
               ],
               "versions": [
                  {
                     "version": "2.6.35",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "2.6.35",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.4.292",
                     "lessThanOrEqual": "4.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.9.290",
                     "lessThanOrEqual": "4.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.255",
                     "lessThanOrEqual": "4.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.216",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.157",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.77",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.14.16",
                     "lessThanOrEqual": "5.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/bda41654b6e0c125a624ca35d6d20beb8015b5d0"
            },
            {
               "url": "https://git.kernel.org/stable/c/3f57c3f67fd93b4da86aeffea1ca32c484d054ad"
            },
            {
               "url": "https://git.kernel.org/stable/c/60833707b968d5ae02a75edb7886dcd4a957cf0d"
            },
            {
               "url": "https://git.kernel.org/stable/c/73d2892148aa4397a885b4f4afcfc5b27a325c42"
            },
            {
               "url": "https://git.kernel.org/stable/c/0f8cdfff06829a0b0348b6debc29ff6a61967724"
            },
            {
               "url": "https://git.kernel.org/stable/c/c3e17e58f571f34c51aeb17274ed02c2ed5cf780"
            },
            {
               "url": "https://git.kernel.org/stable/c/0d4395477741608d123dad51def9fe50b7ebe952"
            },
            {
               "url": "https://git.kernel.org/stable/c/d39bf40e55e666b5905fdbd46a0dced030ce87be"
            }
         ],
         "title": "IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2021-47485",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
