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

CVE-2023-52502
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization
  • CWE-416 — Use After Free

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1MEDIUM 6.3CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:HCISA-ADP
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1MEDIUM 6.3CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 8f50020ed9b81ba909ce9573f9d05263cdebf502 < e863f5720a5680e50c4cecf12424d7cc31b3eb0a ; affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 < 7adcf014bda16cdbf804af5c164d94d5d025db2d ; affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 < 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9 ; affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 < d888d3f70b0de32b4f51534175f039ddab15eef8 ; affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 < e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc ; affected 8f50020ed9b81ba909ce9573f9d05263cdebf502 < d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c
Linux · Linuxaffected 3.6 ; unaffected 0 < 3.6 ; unaffected 4.19.297 ≤ 4.19.* ; unaffected 5.4.259 ≤ 5.4.* ; unaffected 5.10.199 ≤ 5.10.* ; unaffected 5.15.136 ≤ 5.15.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD