Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-53138— net: caif: Fix use-after-free in cfusbl_device_notify()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于cfusbl_device_notify函数存在释放后重用问题。

CVSS 7.8 · High EPSS 0.18% · P8

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 18

VendorProduct Version RangeStatus
Linux Linux 7ad65bf68d705b445ef10b77ab50dab22be185ee< 68a45c3cf0e2242a533657f4f535d9b6a7447a79 affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< 1793da97a23e31c5bf06631f3f3e5a25f368fd64 affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< 9dc16be373b382ddd4c274052a6e870a95e76c01 affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< c3aaec463a632cf4187dc017e421bfa69d7834a9 affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< 3f14457e1584224f4296af613bbd99deb60b5d91 affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< 287027d8a567168a5d8ce5cb0cba16a34791a48c affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< d1a11bbdbb5ea9f172019c5a4a3e9d8eabd72179 affected
7ad65bf68d705b445ef10b77ab50dab22be185ee< 9781e98a97110f5e76999058368b4be76a788484 affected
… +10 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-53138

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
net: caif: Fix use-after-free in cfusbl_device_notify()
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于cfusbl_device_notify函数存在释放后重用问题。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 7ad65bf68d705b445ef10b77ab50dab22be185ee ~ 68a45c3cf0e2242a533657f4f535d9b6a7447a79 -
Linux Linux 3.3 -

II. Public POCs for CVE-2023-53138

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-53138

登录查看更多情报信息。

Patches & Fixes for CVE-2023-53138 (8)

Same Patch Batch · Linux · 2025-05-02 · 107 CVEs total

CVE-2023-53116 9.8 CRITICAL nvmet: avoid potential UAF in nvmet_req_complete()
CVE-2023-53083 9.8 CRITICAL nfsd: don't replace page in rq_pages if it's a continuation of last page
CVE-2023-53086 8.8 HIGH wifi: mt76: connac: do not check WED status for non-mmio devices
CVE-2025-37798 7.8 HIGH codel: remove sch->q.qlen check before qdisc_tree_reduce_backlog()
CVE-2023-53111 7.8 HIGH loop: Fix use-after-free issues
CVE-2023-53107 7.8 HIGH veth: Fix use after free in XDP_REDIRECT
CVE-2023-53102 7.8 HIGH ice: xsk: disable txq irq before flushing hw
CVE-2023-53100 7.8 HIGH ext4: fix WARNING in ext4_update_inline_data
CVE-2023-53094 7.8 HIGH tty: serial: fsl_lpuart: fix race on RX DMA shutdown
CVE-2023-53090 7.8 HIGH drm/amdkfd: Fix an illegal memory access
CVE-2023-53088 7.8 HIGH mptcp: fix UaF in listener shutdown
CVE-2023-53087 7.8 HIGH drm/i915/active: Fix misuse of non-idle barriers as fence trackers
CVE-2023-53084 7.8 HIGH drm/shmem-helper: Remove another errant put in error path
CVE-2023-53080 7.8 HIGH xsk: Add missing overflow check in xdp_umem_reg
CVE-2023-53072 7.8 HIGH mptcp: use the workqueue to destroy unaccepted sockets
CVE-2023-53065 7.8 HIGH perf/core: Fix perf_output_begin parameter is incorrectly invoked in perf_event_bpf_output
CVE-2023-53057 7.8 HIGH Bluetooth: HCI: Fix global-out-of-bounds
CVE-2023-53052 7.8 HIGH cifs: fix use-after-free bug in refresh_cache_worker()
CVE-2023-53043 7.8 HIGH arm64: dts: qcom: sc7280: Mark PCIe controller as cache coherent
CVE-2023-53039 7.8 HIGH HID: intel-ish-hid: ipc: Fix potential use-after-free in work function

Showing top 20 of 107 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2023-53138

No comments yet


Leave a comment