# CVE-2023-53138: net: caif: Fix use-after-free in cfusbl\_device\_notify()

> 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-26)
- **CWE:** CWE-416
- **Published:** 2025-05-02T15:56:10.372Z
- **Modified:** 2026-08-05T09:12:53.138Z

## Who should check

- Anyone running Linux \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 68a45c3cf0e2242a533657f4f535d9b6a7447a79; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 1793da97a23e31c5bf06631f3f3e5a25f368fd64; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 9dc16be373b382ddd4c274052a6e870a95e76c01; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< c3aaec463a632cf4187dc017e421bfa69d7834a9; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 3f14457e1584224f4296af613bbd99deb60b5d91; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 287027d8a567168a5d8ce5cb0cba16a34791a48c; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 9781e98a97110f5e76999058368b4be76a788484
- Anyone running Linux 3.3

## Description

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

net: caif: Fix use-after-free in cfusbl\_device\_notify()

syzbot reported use-after-free in cfusbl\_device\_notify() \[1\].  This
causes a stack trace like below:

BUG: KASAN: use-after-free in cfusbl\_device\_notify+0x7c9/0x870 net/caif/caif\_usb.c:138
Read of size 8 at addr ffff88807ac4e6f0 by task kworker/u4:6/1214

CPU: 0 PID: 1214 Comm: kworker/u4:6 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup\_net
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
 print\_address\_description.constprop.0.cold+0xeb/0x467 mm/kasan/report.c:313
 print\_report mm/kasan/report.c:429 \[inline\]
 kasan\_report.cold+0xf4/0x1c6 mm/kasan/report.c:491
 cfusbl\_device\_notify+0x7c9/0x870 net/caif/caif\_usb.c:138
 notifier\_call\_chain+0xb5/0x200 kernel/notifier.c:87
 call\_netdevice\_notifiers\_info+0xb5/0x130 net/core/dev.c:1945
 call\_netdevice\_notifiers\_extack net/core/dev.c:1983 \[inline\]
 call\_netdevice\_notifiers net/core/dev.c:1997 \[inline\]
 netdev\_wait\_allrefs\_any net/core/dev.c:10227 \[inline\]
 netdev\_run\_todo+0xbc0/0x10f0 net/core/dev.c:10341
 default\_device\_exit\_batch+0x44e/0x590 net/core/dev.c:11334
 ops\_exit\_list+0x125/0x170 net/core/net\_namespace.c:167
 cleanup\_net+0x4ea/0xb00 net/core/net\_namespace.c:594
 process\_one\_work+0x996/0x1610 kernel/workqueue.c:2289
 worker\_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:302
 \</TASK\>

When unregistering a net device, unregister\_netdevice\_many\_notify()
sets the device's reg\_state to NETREG\_UNREGISTERING, calls notifiers
with NETDEV\_UNREGISTER, and adds the device to the todo list.

Later on, devices in the todo list are processed by netdev\_run\_todo().
netdev\_run\_todo() waits devices' reference count become 1 while
rebdoadcasting NETDEV\_UNREGISTER notification.

When cfusbl\_device\_notify() is called with NETDEV\_UNREGISTER multiple
times, the parent device might be freed.  This could cause UAF.
Processing NETDEV\_UNREGISTER multiple times also causes inbalance of
reference count for the module.

This patch fixes the issue by accepting only first NETDEV\_UNREGISTER
notification.

## Affected and fixed versions

- Linux: \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 68a45c3cf0e2242a533657f4f535d9b6a7447a79; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 1793da97a23e31c5bf06631f3f3e5a25f368fd64; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 9dc16be373b382ddd4c274052a6e870a95e76c01; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< c3aaec463a632cf4187dc017e421bfa69d7834a9; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 3f14457e1584224f4296af613bbd99deb60b5d91; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 287027d8a567168a5d8ce5cb0cba16a34791a48c; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 9781e98a97110f5e76999058368b4be76a788484 (cvelist)
- Linux: 3.3 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-53138.md
Affected: Linux >= 7ad65bf68d705b445ef10b77ab50dab22be185ee, < 68a45c3cf0e2242a533657f4f535d9b6a7447a79; >= 7ad65bf68d705b445ef10b77ab50dab22be185ee, < 1793da97a23e31c5bf06631f3f3e5a25f368fd64; >= 7ad65bf68d705b445ef10b77ab50dab22be185ee, < 9dc16be373b382ddd4c274052a6e870a95e76c01; >= 7ad65bf68d705b445ef10b7…
Fixed in: Linux 68a45c3cf0e2242a533657f4f535d9b6a7447a79, Linux 1793da97a23e31c5bf06631f3f3e5a25f368fd64, Linux 9dc16be373b382ddd4c274052a6e870a95e76c01, Linux 3f14457e1584224f4296af613bbd99deb60b5d91, Linux 287027d8a567168a5d8ce5cb0cba16a34791a48c, Linux 9781e98a97110f5e76999058368b4be76a788484

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

There is no confirmed exploitation: CVE-2023-53138 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-53138?

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

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

Linux \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 68a45c3cf0e2242a533657f4f535d9b6a7447a79; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 1793da97a23e31c5bf06631f3f3e5a25f368fd64; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 9dc16be373b382ddd4c274052a6e870a95e76c01; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< c3aaec463a632cf4187dc017e421bfa69d7834a9; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 3f14457e1584224f4296af613bbd99deb60b5d91; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 287027d8a567168a5d8ce5cb0cba16a34791a48c; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179; \>= 7ad65bf68d705b445ef10b77ab50dab22be185ee, \< 9781e98a97110f5e76999058368b4be76a788484; Linux 3.3.

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

Yes. Fixed in Linux 68a45c3cf0e2242a533657f4f535d9b6a7447a79, Linux 1793da97a23e31c5bf06631f3f3e5a25f368fd64, Linux 9dc16be373b382ddd4c274052a6e870a95e76c01, Linux 3f14457e1584224f4296af613bbd99deb60b5d91, Linux 287027d8a567168a5d8ce5cb0cba16a34791a48c, Linux 9781e98a97110f5e76999058368b4be76a788484. Upgrade Linux to 9781e98a97110f5e76999058368b4be76a788484 or later.

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

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/68a45c3cf0e2242a533657f4f535d9b6a7447a79>
- patch: <https://git.kernel.org/stable/c/1793da97a23e31c5bf06631f3f3e5a25f368fd64>
- patch: <https://git.kernel.org/stable/c/9dc16be373b382ddd4c274052a6e870a95e76c01>
- patch: <https://git.kernel.org/stable/c/c3aaec463a632cf4187dc017e421bfa69d7834a9>
- patch: <https://git.kernel.org/stable/c/3f14457e1584224f4296af613bbd99deb60b5d91>
- patch: <https://git.kernel.org/stable/c/287027d8a567168a5d8ce5cb0cba16a34791a48c>
- patch: <https://git.kernel.org/stable/c/d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179>
- patch: <https://git.kernel.org/stable/c/9781e98a97110f5e76999058368b4be76a788484>

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

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