{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nNFC: nci: Bounds check struct nfc_target arrays\n\nWhile running under CONFIG_FORTIFY_SOURCE=y, syzkaller reported:\n\n  memcpy: detected field-spanning write (size 129) of single field \"target->sensf_res\" at net/nfc/nci/ntf.c:260 (size 18)\n\nThis appears to be a legitimate lack of bounds checking in\nnci_add_new_protocol(). Add the missing checks."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/nfc/nci/ntf.c"
               ],
               "versions": [
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "6b37f0dc0638",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "dbdcfb9f6748",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "cff35329070b",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "677843470694",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "27eb2d7a1b99",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "908b2da426fe",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "f41547546db9",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "019c4fbaa790",
                     "lessThan": "e329e71013c9",
                     "status": "affected",
                     "versionType": "git"
                  }
               ]
            },
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "affected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/nfc/nci/ntf.c"
               ],
               "versions": [
                  {
                     "version": "3.4",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.4",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.9.336",
                     "lessThanOrEqual": "4.9.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.302",
                     "lessThanOrEqual": "4.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.269",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.227",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.159",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.83",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.0.13",
                     "lessThanOrEqual": "6.0.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/6b37f0dc0638d13a006f2f24d2f6ca61e83bc714"
            },
            {
               "url": "https://git.kernel.org/stable/c/dbdcfb9f6748218a149f62468d6297ce3f014e9c"
            },
            {
               "url": "https://git.kernel.org/stable/c/cff35329070b96b4484d23f9f48a5ca2c947e750"
            },
            {
               "url": "https://git.kernel.org/stable/c/6778434706940b8fad7ef35f410d2b9929f256d2"
            },
            {
               "url": "https://git.kernel.org/stable/c/27eb2d7a1b9987b6d0429b7716b1ff3b82c4ffc9"
            },
            {
               "url": "https://git.kernel.org/stable/c/908b2da426fe9c3ce74cf541ba40e7a4251db191"
            },
            {
               "url": "https://git.kernel.org/stable/c/f41547546db9af99da2c34e3368664d7a79cefae"
            },
            {
               "url": "https://git.kernel.org/stable/c/e329e71013c9b5a4535b099208493c7826ee4a64"
            }
         ],
         "title": "NFC: nci: Bounds check struct nfc_target arrays",
         "x_generator": {
            "engine": "bippy-c9c4e1df01b2"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2022-48967",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
