net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
Summary
| CVE | CVE-2023-52502 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-03-02 22:15:47 UTC |
| Updated | 2026-08-04 10:18:30 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 6.3 MEDIUM from ADP
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
Problem Types: CWE-362 | CWE-416 | CWE-noinfo Not enough information
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 6.3 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H |
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 8.8 | HIGH | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 6.3 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H |
| 3.1 | CNA | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 e863f5720a5680e50c4cecf12424d7cc31b3eb0a git | Not specified |
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 7adcf014bda16cdbf804af5c164d94d5d025db2d git | Not specified |
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9 git | Not specified |
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 d888d3f70b0de32b4f51534175f039ddab15eef8 git | Not specified |
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc git | Not specified |
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c git | Not specified |
| CNA | Linux | Linux | affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 31c07dffafce914c1d1543c135382a11ff058d93 git | Not specified |
| CNA | Linux | Linux | affected 3.6 | Not specified |
| CNA | Linux | Linux | unaffected 3.6 semver | Not specified |
| CNA | Linux | Linux | unaffected 4.19.297 4.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.259 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.199 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.136 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.59 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.5.8 6.5.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/e863f5720a5680e50c4cecf12424d7cc31b3eb0a | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 755966 SUSE Enterprise Linux Security Update for the linux kernel (SUSE-SU-2024:0857-1)
- 755988 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0975-1)
- 756004 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0926-1)
- 756005 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2024:0925-1)