# CVE-2023-53106: nfc: st-nci: Fix use after free bug in ndlc\_remove due to race condition

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-05-02T15:55:47.501Z
- **Modified:** 2026-06-17T06:44:18.537Z

## Who should check

- Anyone running Linux \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 2156490c4b7cacda9a18ec99929940b8376dc0e3; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 3405eb641dafcc8b28d174784b203c1622c121bf; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< b0c202a8dc63008205a5d546559736507a9aae66; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 43aa468df246175207a7d5d7d6d31b231f15b49c; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 84dd9cc34014e3a3dcce0eb6d54b8a067e97676b; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 5e331022b448fbc5e76f24349cd0246844dcad25; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< f589e5b56c562d99ea74e05b1c3f0eab78aa17a3; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6
- Anyone running Linux 3.17

## Description

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

nfc: st-nci: Fix use after free bug in ndlc\_remove due to race condition

This bug influences both st\_nci\_i2c\_remove and st\_nci\_spi\_remove.
Take st\_nci\_i2c\_remove as an example.

In st\_nci\_i2c\_probe, it called ndlc\_probe and bound &ndlc-\>sm\_work
with llt\_ndlc\_sm\_work.

When it calls ndlc\_recv or timeout handler, it will finally call
schedule\_work to start the work.

When we call st\_nci\_i2c\_remove to remove the driver, there
may be a sequence as follows:

Fix it by finishing the work before cleanup in ndlc\_remove

CPU0                  CPU1

                    \|llt\_ndlc\_sm\_work
st\_nci\_i2c\_remove   \|
  ndlc\_remove       \|
     st\_nci\_remove  \|
     nci\_free\_device\|
     kfree(ndev)    \|
//free ndlc-\>ndev   \|
                    \|llt\_ndlc\_rcv\_queue
                    \|nci\_recv\_frame
                    \|//use ndlc-\>ndev

## Affected and fixed versions

- Linux: \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 2156490c4b7cacda9a18ec99929940b8376dc0e3; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 3405eb641dafcc8b28d174784b203c1622c121bf; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< b0c202a8dc63008205a5d546559736507a9aae66; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 43aa468df246175207a7d5d7d6d31b231f15b49c; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 84dd9cc34014e3a3dcce0eb6d54b8a067e97676b; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 5e331022b448fbc5e76f24349cd0246844dcad25; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< f589e5b56c562d99ea74e05b1c3f0eab78aa17a3; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6 (cvelist)
- Linux: 3.17 (cvelist)

## Mitigation

- Upgrade Linux to 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6 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-53106. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53106.md
Affected: Linux >= 35630df68d6030daf12dde12ed07bbe26324e6ac, < 2156490c4b7cacda9a18ec99929940b8376dc0e3; >= 35630df68d6030daf12dde12ed07bbe26324e6ac, < 3405eb641dafcc8b28d174784b203c1622c121bf; >= 35630df68d6030daf12dde12ed07bbe26324e6ac, < b0c202a8dc63008205a5d546559736507a9aae66; >= 35630df68d6030daf12dde1…
Fixed in: Linux 2156490c4b7cacda9a18ec99929940b8376dc0e3, Linux 3405eb641dafcc8b28d174784b203c1622c121bf, Linux 43aa468df246175207a7d5d7d6d31b231f15b49c, Linux 84dd9cc34014e3a3dcce0eb6d54b8a067e97676b, Linux 5e331022b448fbc5e76f24349cd0246844dcad25, Linux 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6

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-53106 being exploited?

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

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

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

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

Linux \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 2156490c4b7cacda9a18ec99929940b8376dc0e3; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 3405eb641dafcc8b28d174784b203c1622c121bf; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< b0c202a8dc63008205a5d546559736507a9aae66; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 43aa468df246175207a7d5d7d6d31b231f15b49c; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 84dd9cc34014e3a3dcce0eb6d54b8a067e97676b; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 5e331022b448fbc5e76f24349cd0246844dcad25; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< f589e5b56c562d99ea74e05b1c3f0eab78aa17a3; \>= 35630df68d6030daf12dde12ed07bbe26324e6ac, \< 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6; Linux 3.17.

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

Yes. Fixed in Linux 2156490c4b7cacda9a18ec99929940b8376dc0e3, Linux 3405eb641dafcc8b28d174784b203c1622c121bf, Linux 43aa468df246175207a7d5d7d6d31b231f15b49c, Linux 84dd9cc34014e3a3dcce0eb6d54b8a067e97676b, Linux 5e331022b448fbc5e76f24349cd0246844dcad25, Linux 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6. Upgrade Linux to 5000fe6c27827a61d8250a7e4a1d26c3298ef4f6 or later.

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

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/2156490c4b7cacda9a18ec99929940b8376dc0e3>
- patch: <https://git.kernel.org/stable/c/3405eb641dafcc8b28d174784b203c1622c121bf>
- patch: <https://git.kernel.org/stable/c/b0c202a8dc63008205a5d546559736507a9aae66>
- patch: <https://git.kernel.org/stable/c/43aa468df246175207a7d5d7d6d31b231f15b49c>
- patch: <https://git.kernel.org/stable/c/84dd9cc34014e3a3dcce0eb6d54b8a067e97676b>
- patch: <https://git.kernel.org/stable/c/5e331022b448fbc5e76f24349cd0246844dcad25>
- patch: <https://git.kernel.org/stable/c/f589e5b56c562d99ea74e05b1c3f0eab78aa17a3>
- patch: <https://git.kernel.org/stable/c/5000fe6c27827a61d8250a7e4a1d26c3298ef4f6>

## 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-53106>

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