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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2023-52999— net: fix UaF in netns ops registration error path

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存在安全漏洞,该漏洞源于netns操作注册错误路径中存在越界访问。

CVSS 7.8 · High EPSS 0.25% · P15

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 20

VendorProduct Version RangeStatus
Linux Linux 5a2ea549be94924364f6911227d99be86e8cf34a< ad0dfe9bcf0d78e699c7efb64c90ed062dc48bea affected
97ad240fd9aa9214497d14af2b91608e20856cac< ddd49cbbd4c1ceb38032018b589b44208e54f55e affected
c3edc6e808209aa705185f732e682a370981ced1< d4c008f3b7f7d4ffd311eb2dae5e75b3cbddacd0 affected
a1e18acb0246bfb001b08b8b1b830b5ec92a0f13< 66689a72ba73575e76d4f6a8748d3fa2690ec1c4 affected
d266935ac43d57586e311a087510fe6a084af742< 12075708f2e77ee6a9f8bb2cf512c38be3099794 affected
d266935ac43d57586e311a087510fe6a084af742< 71ab9c3e2253619136c31c89dbb2c69305cc89b1 affected
4a4df5e78712de39d6f90d6a64b5eb48dca03bd5 affected
4.19.264< 4.19.272 affected
… +12 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-52999

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: fix UaF in netns ops registration error path
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: net: fix UaF in netns ops registration error path If net_assign_generic() fails, the current error path in ops_init() tries to clear the gen pointer slot. Anyway, in such error path, the gen pointer itself has not been modified yet, and the existing and accessed one is smaller than the accessed index, causing an out-of-bounds error: BUG: KASAN: slab-out-of-bounds in ops_init+0x2de/0x320 Write of size 8 at addr ffff888109124978 by task modprobe/1018 CPU: 2 PID: 1018 Comm: modprobe Not tainted 6.2.0-rc2.mptcp_ae5ac65fbed5+ #1641 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.1-2.fc37 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x6a/0x9f print_address_description.constprop.0+0x86/0x2b5 print_report+0x11b/0x1fb kasan_report+0x87/0xc0 ops_init+0x2de/0x320 register_pernet_operations+0x2e4/0x750 register_pernet_subsys+0x24/0x40 tcf_register_action+0x9f/0x560 do_one_initcall+0xf9/0x570 do_init_module+0x190/0x650 load_module+0x1fa5/0x23c0 __do_sys_finit_module+0x10d/0x1b0 do_syscall_64+0x58/0x80 entry_SYSCALL_64_after_hwframe+0x72/0xdc RIP: 0033:0x7f42518f778d Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48 RSP: 002b:00007fff96869688 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 00005568ef7f7c90 RCX: 00007f42518f778d RDX: 0000000000000000 RSI: 00005568ef41d796 RDI: 0000000000000003 RBP: 00005568ef41d796 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 00005568ef7f7d30 R14: 0000000000040000 R15: 0000000000000000 </TASK> This change addresses the issue by skipping the gen pointer de-reference in the mentioned error-path. Found by code inspection and verified with explicit error injection on a kasan-enabled kernel.
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存在安全漏洞,该漏洞源于netns操作注册错误路径中存在越界访问。
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 5a2ea549be94924364f6911227d99be86e8cf34a ~ ad0dfe9bcf0d78e699c7efb64c90ed062dc48bea -
Linux Linux 6.1 -

II. Public POCs for CVE-2023-52999

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

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-03-27 · 124 CVEs total

CVE-2023-53006 9.8 CRITICAL cifs: Fix oops due to uncleared server->smbd_conn in reconnect
CVE-2025-21876 8.8 HIGH iommu/vt-d: Fix suspicious RCU usage
CVE-2025-21890 8.2 HIGH idpf: fix checksums set in idpf_rx_rsc()
CVE-2023-52981 7.8 HIGH drm/i915: Fix request ref counting during error capture & debugfs dump
CVE-2025-21889 7.8 HIGH perf/core: Add RCU read lock protection to perf_iterate_ctx()
CVE-2023-52930 7.8 HIGH drm/i915: Fix potential bit_17 double-free
CVE-2023-52931 7.8 HIGH drm/i915: Avoid potential vm use-after-free
CVE-2023-52934 7.8 HIGH mm/MADV_COLLAPSE: catch !none !huge !bad pmd lookups
CVE-2023-52935 7.8 HIGH mm/khugepaged: fix ->anon_vma race
CVE-2025-21867 7.8 HIGH bpf, test_run: Fix use-after-free issue in eth_skb_pkt_type()
CVE-2022-49760 7.8 HIGH mm/hugetlb: fix PTE marker handling in hugetlb_change_protection()
CVE-2023-52973 7.8 HIGH vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
CVE-2023-52974 7.8 HIGH scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
CVE-2023-53009 7.8 HIGH drm/amdkfd: Add sync after creating vram bo
CVE-2023-53033 7.8 HIGH netfilter: nft_payload: incorrect arithmetics when fetching VLAN header bits
CVE-2023-53028 7.8 HIGH Revert "wifi: mac80211: fix memory leak in ieee80211_if_add()"
CVE-2023-53026 7.8 HIGH RDMA/core: Fix ib block iterator counter overflow
CVE-2023-53023 7.8 HIGH net: nfc: Fix use-after-free in local_cleanup()
CVE-2023-53021 7.8 HIGH net/sched: sch_taprio: fix possible use-after-free
CVE-2023-52987 7.8 HIGH ASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()

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

IV. Related Vulnerabilities

V. Comments for CVE-2023-52999

No comments yet


Leave a comment