{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scpi: Fix string overflow in SCPI genpd driver\n\nWithout the bound checks for scpi_pd->name, it could result in the buffer\noverflow when copying the SCPI device name from the corresponding device\ntree node as the name string is set at maximum size of 30.\n\nLet us fix it by using devm_kasprintf so that the string buffer is\nallocated dynamically."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "drivers/firmware/scpi_pm_domain.c"
               ],
               "versions": [
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "639901b9429a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "4694b1ec425a",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "7e8645ca2c00",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "802a1a850156",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "f0f484714f35",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "976389cbb16c",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8bec4337ad40",
                     "lessThan": "865ed67ab955",
                     "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/firmware/scpi_pm_domain.c"
               ],
               "versions": [
                  {
                     "version": "4.8",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "4.8",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.9.294",
                     "lessThanOrEqual": "4.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.259",
                     "lessThanOrEqual": "4.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.222",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.168",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.88",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.11",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.16",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/639901b9429a3195e0fead981ed74b51f5f31538"
            },
            {
               "url": "https://git.kernel.org/stable/c/4694b1ec425a2d20d6f8ca3db594829fdf5f2672"
            },
            {
               "url": "https://git.kernel.org/stable/c/7e8645ca2c0046f7cd2f0f7d569fc036c8abaedb"
            },
            {
               "url": "https://git.kernel.org/stable/c/802a1a8501563714a5fe8824f4ed27fec04a0719"
            },
            {
               "url": "https://git.kernel.org/stable/c/f0f484714f35d24ffa0ecb4afe3df1c5b225411d"
            },
            {
               "url": "https://git.kernel.org/stable/c/976389cbb16cee46847e5d06250a3a0b5506781e"
            },
            {
               "url": "https://git.kernel.org/stable/c/865ed67ab955428b9aa771d8b4f1e4fb7fd08945"
            }
         ],
         "title": "firmware: arm_scpi: Fix string overflow in SCPI genpd driver",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2021-47609",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
