# CVE-2023-53023: net: nfc: Fix use-after-free in local\_cleanup()

> 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, CNA) `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-28)
- **CWE:** CWE-416
- **Published:** 2025-03-27T16:43:49.142Z
- **Modified:** 2026-08-05T09:12:24.049Z

## Who should check

- Anyone running Linux \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< b09ae26f08aaf2d85f96ea7f90ddd3387f62216f; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 54f7be61584b8ec4c6df405f479495b9397bae4a; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< a59cdbda3714e11aa3ab579132864c4c8c6d54f9; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< ad1baab3a5c03692d22ce446f38596a126377f6a; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 7f129927feaf7c10b1c38bbce630172e9a08c834; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< d3605282ec3502ec8847915eb2cf1f340493ff79; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6
- Anyone running Linux 3.9

## Description

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

net: nfc: Fix use-after-free in local\_cleanup()

Fix a use-after-free that occurs in kfree\_skb() called from
local\_cleanup(). This could happen when killing nfc daemon (e.g. neard)
after detaching an nfc device.
When detaching an nfc device, local\_cleanup() called from
nfc\_llcp\_unregister\_device() frees local-\>rx\_pending and decreases
local-\>ref by kref\_put() in nfc\_llcp\_local\_put().
In the terminating process, nfc daemon releases all sockets and it leads
to decreasing local-\>ref. After the last release of local-\>ref,
local\_cleanup() called from local\_release() frees local-\>rx\_pending
again, which leads to the bug.

Setting local-\>rx\_pending to NULL in local\_cleanup() could prevent
use-after-free when local\_cleanup() is called twice.

Found by a modified version of syzkaller.

BUG: KASAN: use-after-free in kfree\_skb()

Call Trace:
dump\_stack\_lvl (lib/dump\_stack.c:106)
print\_address\_description.constprop.0.cold (mm/kasan/report.c:306)
kasan\_check\_range (mm/kasan/generic.c:189)
kfree\_skb (net/core/skbuff.c:955)
local\_cleanup (net/nfc/llcp\_core.c:159)
nfc\_llcp\_local\_put.part.0 (net/nfc/llcp\_core.c:172)
nfc\_llcp\_local\_put (net/nfc/llcp\_core.c:181)
llcp\_sock\_destruct (net/nfc/llcp\_sock.c:959)
\_\_sk\_destruct (net/core/sock.c:2133)
sk\_destruct (net/core/sock.c:2181)
\_\_sk\_free (net/core/sock.c:2192)
sk\_free (net/core/sock.c:2203)
llcp\_sock\_release (net/nfc/llcp\_sock.c:646)
\_\_sock\_release (net/socket.c:650)
sock\_close (net/socket.c:1365)
\_\_fput (fs/file\_table.c:306)
task\_work\_run (kernel/task\_work.c:179)
ptrace\_notify (kernel/signal.c:2354)
syscall\_exit\_to\_user\_mode\_prepare (kernel/entry/common.c:278)
syscall\_exit\_to\_user\_mode (kernel/entry/common.c:296)
do\_syscall\_64 (arch/x86/entry/common.c:86)
entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:106)

Allocated by task 4719:
kasan\_save\_stack (mm/kasan/common.c:45)
\_\_kasan\_slab\_alloc (mm/kasan/common.c:325)
slab\_post\_alloc\_hook (mm/slab.h:766)
kmem\_cache\_alloc\_node (mm/slub.c:3497)
\_\_alloc\_skb (net/core/skbuff.c:552)
pn533\_recv\_response (drivers/nfc/pn533/usb.c:65)
\_\_usb\_hcd\_giveback\_urb (drivers/usb/core/hcd.c:1671)
usb\_giveback\_urb\_bh (drivers/usb/core/hcd.c:1704)
tasklet\_action\_common.isra.0 (kernel/softirq.c:797)
\_\_do\_softirq (kernel/softirq.c:571)

Freed by task 1901:
kasan\_save\_stack (mm/kasan/common.c:45)
kasan\_set\_track (mm/kasan/common.c:52)
kasan\_save\_free\_info (mm/kasan/genericdd.c:518)
\_\_kasan\_slab\_free (mm/kasan/common.c:236)
kmem\_cache\_free (mm/slub.c:3809)
kfree\_skbmem (net/core/skbuff.c:874)
kfree\_skb (net/core/skbuff.c:931)
local\_cleanup (net/nfc/llcp\_core.c:159)
nfc\_llcp\_unregister\_device (net/nfc/llcp\_core.c:1617)
nfc\_unregister\_device (net/nfc/core.c:1179)
pn53x\_unregister\_nfc (drivers/nfc/pn533/pn533.c:2846)
pn533\_usb\_disconnect (drivers/nfc/pn533/usb.c:579)
usb\_unbind\_interface (drivers/usb/core/driver.c:458)
device\_release\_driver\_internal (drivers/base/dd.c:1279)
bus\_remove\_device (drivers/base/bus.c:529)
device\_del (drivers/base/core.c:3665)
usb\_disable\_device (drivers/usb/core/message.c:1420)
usb\_disconnect (drivers/usb/core.c:2261)
hub\_event (drivers/usb/core/hub.c:5833)
process\_one\_work (arch/x86/include/asm/jump\_label.h:27 include/linux/jump\_label.h:212 include/trace/events/workqueue.h:108 kernel/workqueue.c:2281)
worker\_thread (include/linux/list.h:282 kernel/workqueue.c:2423)
kthread (kernel/kthread.c:319)
ret\_from\_fork (arch/x86/entry/entry\_64.S:301)

## Affected and fixed versions

- Linux: \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< b09ae26f08aaf2d85f96ea7f90ddd3387f62216f; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 54f7be61584b8ec4c6df405f479495b9397bae4a; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< a59cdbda3714e11aa3ab579132864c4c8c6d54f9; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< ad1baab3a5c03692d22ce446f38596a126377f6a; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 7f129927feaf7c10b1c38bbce630172e9a08c834; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< d3605282ec3502ec8847915eb2cf1f340493ff79; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6 (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53023.md
Affected: Linux >= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, < b09ae26f08aaf2d85f96ea7f90ddd3387f62216f; >= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, < 54f7be61584b8ec4c6df405f479495b9397bae4a; >= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, < a59cdbda3714e11aa3ab579132864c4c8c6d54f9; >= 3536da06db0baa675f32de6…
Fixed in: Linux 54f7be61584b8ec4c6df405f479495b9397bae4a, Linux 7f129927feaf7c10b1c38bbce630172e9a08c834, Linux 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6

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

There is no confirmed exploitation: CVE-2023-53023 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-28).

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

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

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

Linux \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< b09ae26f08aaf2d85f96ea7f90ddd3387f62216f; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 54f7be61584b8ec4c6df405f479495b9397bae4a; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< a59cdbda3714e11aa3ab579132864c4c8c6d54f9; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< ad1baab3a5c03692d22ce446f38596a126377f6a; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 7f129927feaf7c10b1c38bbce630172e9a08c834; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< d3605282ec3502ec8847915eb2cf1f340493ff79; \>= 3536da06db0baa675f32de608c0a4c0f5ef0e9ff, \< 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6; Linux 3.9.

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

Yes. Fixed in Linux 54f7be61584b8ec4c6df405f479495b9397bae4a, Linux 7f129927feaf7c10b1c38bbce630172e9a08c834, Linux 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6. Upgrade Linux to 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6 or later.

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

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/b09ae26f08aaf2d85f96ea7f90ddd3387f62216f>
- patch: <https://git.kernel.org/stable/c/54f7be61584b8ec4c6df405f479495b9397bae4a>
- patch: <https://git.kernel.org/stable/c/a59cdbda3714e11aa3ab579132864c4c8c6d54f9>
- patch: <https://git.kernel.org/stable/c/ad1baab3a5c03692d22ce446f38596a126377f6a>
- patch: <https://git.kernel.org/stable/c/7f129927feaf7c10b1c38bbce630172e9a08c834>
- patch: <https://git.kernel.org/stable/c/d3605282ec3502ec8847915eb2cf1f340493ff79>
- patch: <https://git.kernel.org/stable/c/4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6>

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

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