{
   "containers": {
      "cna": {
         "providerMetadata": {
            "orgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038"
         },
         "descriptions": [
            {
               "lang": "en",
               "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()\n\nSili Luo reported a race in nfc_llcp_sock_get(), leading to UAF.\n\nGetting a reference on the socket found in a lookup while\nholding a lock should happen before releasing the lock.\n\nnfc_llcp_sock_get_sn() has a similar problem.\n\nFinally nfc_llcp_recv_snl() needs to make sure the socket\nfound by nfc_llcp_sock_from_sn() does not disappear."
            }
         ],
         "affected": [
            {
               "product": "Linux",
               "vendor": "Linux",
               "defaultStatus": "unaffected",
               "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               "programFiles": [
                  "net/nfc/llcp_core.c"
               ],
               "versions": [
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "e863f5720a56",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "7adcf014bda1",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "6ac22ecdaad2",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "d888d3f70b0d",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "e4f2611f07c8",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "d1af8a39cf83",
                     "status": "affected",
                     "versionType": "git"
                  },
                  {
                     "version": "8f50020ed9b8",
                     "lessThan": "31c07dffafce",
                     "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/llcp_core.c"
               ],
               "versions": [
                  {
                     "version": "3.6",
                     "status": "affected"
                  },
                  {
                     "version": "0",
                     "lessThan": "3.6",
                     "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/e863f5720a5680e50c4cecf12424d7cc31b3eb0a"
            },
            {
               "url": "https://git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d"
            },
            {
               "url": "https://git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9"
            },
            {
               "url": "https://git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8"
            },
            {
               "url": "https://git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc"
            },
            {
               "url": "https://git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c"
            },
            {
               "url": "https://git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93"
            }
         ],
         "title": "net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()",
         "x_generator": {
            "engine": "bippy-a5840b7849dd"
         }
      }
   },
   "cveMetadata": {
      "assignerOrgId": "f4215fc3-5b6b-47ff-a258-f7189bd81038",
      "cveID": "CVE-2023-52502",
      "requesterUserId": "gregkh@kernel.org",
      "serial": "1",
      "state": "PUBLISHED"
   },
   "dataType": "CVE_RECORD",
   "dataVersion": "5.0"
}
