Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-53138

published high CVSS 3.1 · 7.8

net: caif: Fix use-after-free in cfusbl_device_notify()

Published
02 May 2025, 15:56:10 UTC
Updated
05 Aug 2026, 09:12:53 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7ad65bf68d705b445ef10b77ab50dab22be185ee to < 68a45c3cf0e2242a533657f4f535d9b6a7447a79 · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < 1793da97a23e31c5bf06631f3f3e5a25f368fd64 · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < 9dc16be373b382ddd4c274052a6e870a95e76c01 · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < c3aaec463a632cf4187dc017e421bfa69d7834a9 · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < 3f14457e1584224f4296af613bbd99deb60b5d91 · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < 287027d8a567168a5d8ce5cb0cba16a34791a48c · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179 · 7ad65bf68d705b445ef10b77ab50dab22be185ee to < 9781e98a97110f5e76999058368b4be76a788484 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.3 (affected) · 0 to < 3.3 (unaffected · semver) · 4.14.310 through 4.14.* (unaffected · semver) · 4.19.278 through 4.19.* (unaffected · semver) · 5.4.237 through 5.4.* (unaffected · semver) · 5.10.175 through 5.10.* (unaffected · semver) · 5.15.103 through 5.15.* (unaffected · semver) · 6.1.20 through 6.1.* (unaffected · semver) · 6.2.7 through 6.2.* (unaffected · semver) · 6.3 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The UAF is reached via local netlink/netns operations: create stacked netdevs (e.g. virt_wifi with SET_NETDEV_DEV parent pointing at a veth), then destroy the netns so cleanup_net/netdev_run_todo rebroadcasts NETDEV_UNREGISTER after the parent is freed. Syzbot reproduced this path without physical USB. AC:L - The attacker controls both sides—creating the parent/child netdev pair, holding child references (e.g. sockets) so the child stays on the todo list, and tearing down the netns. The double NETDEV_UNREGISTER rebroadcast is deterministic kernel behavior under those conditions, not a race outside attacker control. PR:L - Creating net namespaces and virtual netdevs requires CAP_NET_ADMIN, which an unprivileged user can obtain in a user namespace (unshare -Urn). Real root in the init namespace is not required. UI:N - Exploitation needs no victim action; the attacker triggers registration and netns teardown entirely on their own. S:U - This is a standard in-kernel UAF enabling local privilege escalation within the same security authority, not a cross-boundary escape (VM/IOMMU/sandbox). C:H - Use-after-free of the parent device object lets an attacker reclaim and control the freed object's contents, enabling arbitrary kernel memory disclosure. I:H - The same UAF is exploitable via heap spraying for arbitrary write/control-flow hijacking; the related module_put imbalance on CAIF USB unregister further enables integrity compromise. A:H - The UAF reliably causes kernel oops/panic (as shown by the KASAN report in cleanup_net), so availability impact is high even without full exploitation.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7ad65bf68d705b445ef10b77ab50dab22be185ee to < 68a45c3cf0e2242a533657f4f535d9b6a7447a79 (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < 1793da97a23e31c5bf06631f3f3e5a25f368fd64 (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < 9dc16be373b382ddd4c274052a6e870a95e76c01 (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < c3aaec463a632cf4187dc017e421bfa69d7834a9 (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < 3f14457e1584224f4296af613bbd99deb60b5d91 (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < 287027d8a567168a5d8ce5cb0cba16a34791a48c (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179 (affected · git)7ad65bf68d705b445ef10b77ab50dab22be185ee to < 9781e98a97110f5e76999058368b4be76a788484 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.3 (affected)0 to < 3.3 (unaffected · semver)4.14.310 through 4.14.* (unaffected · semver)4.19.278 through 4.19.* (unaffected · semver)5.4.237 through 5.4.* (unaffected · semver)5.10.175 through 5.10.* (unaffected · semver)5.15.103 through 5.15.* (unaffected · semver)6.1.20 through 6.1.* (unaffected · semver)6.2.7 through 6.2.* (unaffected · semver)6.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

net: caif: Fix use-after-free in cfusbl_device_notify()

Provenance

Schema
5.2
Searchable
yes
Content hash
2e4eff2d5bc1dcf2315a7118a98890ab40b6002f29be82c982078edc2d5e1bf5
Ingested
23 Sep 2026, 08:14:44 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected