Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52502
HistoryMar 02, 2024 - 9:52 p.m.

CVE-2023-52502 net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()

2024-03-0221:52:17
Linux
www.cve.org
vulnerability
linux kernel
uaf
socket
race
nfc

7.5 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.3%

In the Linux kernel, the following vulnerability has been resolved:

net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()

Sili Luo reported a race in nfc_llcp_sock_get(), leading to UAF.

Getting a reference on the socket found in a lookup while
holding a lock should happen before releasing the lock.

nfc_llcp_sock_get_sn() has a similar problem.

Finally nfc_llcp_recv_snl() needs to make sure the socket
found by nfc_llcp_sock_from_sn() does not disappear.

CNA 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"
      }
    ]
  }
]

7.5 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.3%