{
   "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: assert requested protocol is valid\n\nThe protocol is used in a bit mask to determine if the protocol is\nsupported. Assert the provided protocol is less than the maximum\ndefined so it doesn't potentially perform a shift-out-of-bounds and\nprovide a clearer error for undefined protocols vs unsupported ones."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/nfc/nci/core.c"
               ],
               "versions": [
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "2c231a247a1d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "a686f8410168",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "95733ea130e3",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "a424807d860b",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "25dd54b95abf",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "853dda54ba59",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "6584eba7688d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "6a2968aaf50c",
                     "lessThan": "354a6e707e29",
                     "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/core.c"
               ],
               "versions": [
                  {
                     "version": "3.2",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.2",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.14.328",
                     "lessThanOrEqual": "4.14.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "4.19.297",
                     "lessThanOrEqual": "4.19.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.4.259",
                     "lessThanOrEqual": "5.4.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.10.199",
                     "lessThanOrEqual": "5.10.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "5.15.136",
                     "lessThanOrEqual": "5.15.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.1.59",
                     "lessThanOrEqual": "6.1.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.5.8",
                     "lessThanOrEqual": "6.5.*",
                     "status": "unaffected",
                     "versionType": "custom"
                  },
                  {
                     "version": "6.6",
                     "lessThanOrEqual": "*",
                     "status": "unaffected",
                     "versionType": "original_commit_for_fix"
                  }
               ]
            }
         ],
         "references": [
            {
               "url": "https://git.kernel.org/stable/c/2c231a247a1d1628e41fa1eefd1a5307c41c5f53"
            },
            {
               "url": "https://git.kernel.org/stable/c/a686f84101680b8442181a8846fbd3c934653729"
            },
            {
               "url": "https://git.kernel.org/stable/c/95733ea130e35ef9ec5949a5908dde3feaba92cb"
            },
            {
               "url": "https://git.kernel.org/stable/c/a424807d860ba816aaafc3064b46b456361c0802"
            },
            {
               "url": "https://git.kernel.org/stable/c/25dd54b95abfdca423b65a4ee620a774777d8213"
            },
            {
               "url": "https://git.kernel.org/stable/c/853dda54ba59ea70d5580a298b7ede4707826848"
            },
            {
               "url": "https://git.kernel.org/stable/c/6584eba7688dcf999542778b07f63828c21521da"
            },
            {
               "url": "https://git.kernel.org/stable/c/354a6e707e29cb0c007176ee5b8db8be7bd2dee0"
            }
         ],
         "title": "nfc: nci: assert requested protocol is valid",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2023-52507",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
