CVE-2023-52502
net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
Check your servers for CVE-2023-52502
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52502 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before e863f5720a5680e50c4cecf12424d7cc31b3eb0a affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before 7adcf014bda16cdbf804af5c164d94d5d025db2d affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before 6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9 affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before d888d3f70b0de32b4f51534175f039ddab15eef8 affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c affected from 8f50020ed9b81ba909ce9573f9d05263cdebf502, before 31c07dffafce914c1d1543c135382a11ff058d93
Other versions: unaffected
|
| Linux |
affected 3.6 unaffected before 3.6 unaffected from 4.19.297 up to and including 4.19.* unaffected from 5.4.259 up to and including 5.4.* unaffected from 5.10.199 up to and including 5.10.* unaffected from 5.15.136 up to and including 5.15.* unaffected from 6.1.59 up to and including 6.1.* unaffected from 6.5.8 up to and including 6.5.* unaffected 6.6 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52502 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52502
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52502
trivy image --scanners vuln IMAGE | grep CVE-2023-52502
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e863f5720a5680e50c4cecf12424d7cc31b3eb0a git.kernel.org
- https://git.kernel.org/stable/c/7adcf014bda16cdbf804af5c164d94d5d025db2d git.kernel.org
- https://git.kernel.org/stable/c/6ac22ecdaad2ecc662048f8c6b0ceb1ca0699ef9 git.kernel.org
- https://git.kernel.org/stable/c/d888d3f70b0de32b4f51534175f039ddab15eef8 git.kernel.org
- https://git.kernel.org/stable/c/e4f2611f07c87b3ddb57c4b9e8efcd1e330fc3dc git.kernel.org
- https://git.kernel.org/stable/c/d1af8a39cf839d93c8967fdd858f6bbdc3e4a15c git.kernel.org
- https://git.kernel.org/stable/c/31c07dffafce914c1d1543c135382a11ff058d93 git.kernel.org
Source: the record CVE-2023-52502 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse