# CVE-2023-52507: nfc: nci: assert requested protocol is valid

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2024-03-02T21:52:20.724Z
- **Modified:** 2026-06-17T06:42:53.367Z

## Who should check

- Anyone running Linux \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 2c231a247a1d1628e41fa1eefd1a5307c41c5f53; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< a686f84101680b8442181a8846fbd3c934653729; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 95733ea130e35ef9ec5949a5908dde3feaba92cb; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< a424807d860ba816aaafc3064b46b456361c0802; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 25dd54b95abfdca423b65a4ee620a774777d8213; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 853dda54ba59ea70d5580a298b7ede4707826848; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 6584eba7688dcf999542778b07f63828c21521da; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 354a6e707e29cb0c007176ee5b8db8be7bd2dee0
- Anyone running Linux 3.2

## Description

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

nfc: nci: assert requested protocol is valid

The protocol is used in a bit mask to determine if the protocol is
supported. Assert the provided protocol is less than the maximum
defined so it doesn't potentially perform a shift-out-of-bounds and
provide a clearer error for undefined protocols vs unsupported ones.

## Affected and fixed versions

- Linux: \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 2c231a247a1d1628e41fa1eefd1a5307c41c5f53; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< a686f84101680b8442181a8846fbd3c934653729; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 95733ea130e35ef9ec5949a5908dde3feaba92cb; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< a424807d860ba816aaafc3064b46b456361c0802; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 25dd54b95abfdca423b65a4ee620a774777d8213; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 853dda54ba59ea70d5580a298b7ede4707826848; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 6584eba7688dcf999542778b07f63828c21521da; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 354a6e707e29cb0c007176ee5b8db8be7bd2dee0 (cvelist)
- Linux: 3.2 (cvelist)

## Mitigation

- Upgrade Linux to 354a6e707e29cb0c007176ee5b8db8be7bd2dee0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52507. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52507.md
Affected: Linux >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < 2c231a247a1d1628e41fa1eefd1a5307c41c5f53; >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < a686f84101680b8442181a8846fbd3c934653729; >= 6a2968aaf50c7a22fced77a5e24aa636281efca8, < 95733ea130e35ef9ec5949a5908dde3feaba92cb; >= 6a2968aaf50c7a22fced77a…
Fixed in: Linux 2c231a247a1d1628e41fa1eefd1a5307c41c5f53, Linux 95733ea130e35ef9ec5949a5908dde3feaba92cb, Linux 25dd54b95abfdca423b65a4ee620a774777d8213, Linux 853dda54ba59ea70d5580a298b7ede4707826848, Linux 6584eba7688dcf999542778b07f63828c21521da, Linux 354a6e707e29cb0c007176ee5b8db8be7bd2dee0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52507 being exploited?

There is no confirmed exploitation: CVE-2023-52507 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52507?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52507?

Linux \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 2c231a247a1d1628e41fa1eefd1a5307c41c5f53; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< a686f84101680b8442181a8846fbd3c934653729; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 95733ea130e35ef9ec5949a5908dde3feaba92cb; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< a424807d860ba816aaafc3064b46b456361c0802; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 25dd54b95abfdca423b65a4ee620a774777d8213; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 853dda54ba59ea70d5580a298b7ede4707826848; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 6584eba7688dcf999542778b07f63828c21521da; \>= 6a2968aaf50c7a22fced77a5e24aa636281efca8, \< 354a6e707e29cb0c007176ee5b8db8be7bd2dee0; Linux 3.2.

### Is there a fix for CVE-2023-52507?

Yes. Fixed in Linux 2c231a247a1d1628e41fa1eefd1a5307c41c5f53, Linux 95733ea130e35ef9ec5949a5908dde3feaba92cb, Linux 25dd54b95abfdca423b65a4ee620a774777d8213, Linux 853dda54ba59ea70d5580a298b7ede4707826848, Linux 6584eba7688dcf999542778b07f63828c21521da, Linux 354a6e707e29cb0c007176ee5b8db8be7bd2dee0. Upgrade Linux to 354a6e707e29cb0c007176ee5b8db8be7bd2dee0 or later.

### How do I check if I'm affected by CVE-2023-52507?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/2c231a247a1d1628e41fa1eefd1a5307c41c5f53>
- patch: <https://git.kernel.org/stable/c/a686f84101680b8442181a8846fbd3c934653729>
- patch: <https://git.kernel.org/stable/c/95733ea130e35ef9ec5949a5908dde3feaba92cb>
- patch: <https://git.kernel.org/stable/c/a424807d860ba816aaafc3064b46b456361c0802>
- patch: <https://git.kernel.org/stable/c/25dd54b95abfdca423b65a4ee620a774777d8213>
- patch: <https://git.kernel.org/stable/c/853dda54ba59ea70d5580a298b7ede4707826848>
- patch: <https://git.kernel.org/stable/c/6584eba7688dcf999542778b07f63828c21521da>
- patch: <https://git.kernel.org/stable/c/354a6e707e29cb0c007176ee5b8db8be7bd2dee0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52507>

HTML: <https://flawdb.com/CVE-2023-52507> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52507>
