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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-50405— net/tunnel: wait until all sk_user_data reader finish before releasing the sock

CVSS 7.8 · High EPSS 0.17% · P7

Possible ATT&CK Techniques 1AI

T1211 · Exploitation for Stealth

Affected Version Matrix 20

VendorProductVersion RangeStatus
LinuxLinux6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< e8316584b0a6c61c9c407631040c22712b26e38caffected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< 84e566d157cc22ad2da8bdd970495855fbf13d92affected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< be34e79e0ae6adbf6e7e75ddaee9ad84795ab933affected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< 303000c793f705d07b551eb7c1c27001c5b33c8daffected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< 91f09a776ae335ca836ed864b8f2a9461882a280affected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< 9a6544343bba7da929d6d4a2dc44ec0f15970081affected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< b38aa7465411795e9e744b8d94633910497fec2aaffected
6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d< 588d0b8462f5ffed3e677e65639825b2678117abaffected
… +12 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-50405

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/tunnel: wait until all sk_user_data reader finish before releasing the sock
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: net/tunnel: wait until all sk_user_data reader finish before releasing the sock There is a race condition in vxlan that when deleting a vxlan device during receiving packets, there is a possibility that the sock is released after getting vxlan_sock vs from sk_user_data. Then in later vxlan_ecn_decapsulate(), vxlan_get_sk_family() we will got NULL pointer dereference. e.g. #0 [ffffa25ec6978a38] machine_kexec at ffffffff8c669757 #1 [ffffa25ec6978a90] __crash_kexec at ffffffff8c7c0a4d #2 [ffffa25ec6978b58] crash_kexec at ffffffff8c7c1c48 #3 [ffffa25ec6978b60] oops_end at ffffffff8c627f2b #4 [ffffa25ec6978b80] page_fault_oops at ffffffff8c678fcb #5 [ffffa25ec6978bd8] exc_page_fault at ffffffff8d109542 #6 [ffffa25ec6978c00] asm_exc_page_fault at ffffffff8d200b62 [exception RIP: vxlan_ecn_decapsulate+0x3b] RIP: ffffffffc1014e7b RSP: ffffa25ec6978cb0 RFLAGS: 00010246 RAX: 0000000000000008 RBX: ffff8aa000888000 RCX: 0000000000000000 RDX: 000000000000000e RSI: ffff8a9fc7ab803e RDI: ffff8a9fd1168700 RBP: ffff8a9fc7ab803e R8: 0000000000700000 R9: 00000000000010ae R10: ffff8a9fcb748980 R11: 0000000000000000 R12: ffff8a9fd1168700 R13: ffff8aa000888000 R14: 00000000002a0000 R15: 00000000000010ae ORIG_RAX: ffffffffffffffff CS: 0010 SS: 0018 #7 [ffffa25ec6978ce8] vxlan_rcv at ffffffffc10189cd [vxlan] #8 [ffffa25ec6978d90] udp_queue_rcv_one_skb at ffffffff8cfb6507 #9 [ffffa25ec6978dc0] udp_unicast_rcv_skb at ffffffff8cfb6e45 #10 [ffffa25ec6978dc8] __udp4_lib_rcv at ffffffff8cfb8807 #11 [ffffa25ec6978e20] ip_protocol_deliver_rcu at ffffffff8cf76951 #12 [ffffa25ec6978e48] ip_local_deliver at ffffffff8cf76bde #13 [ffffa25ec6978ea0] __netif_receive_skb_one_core at ffffffff8cecde9b #14 [ffffa25ec6978ec8] process_backlog at ffffffff8cece139 #15 [ffffa25ec6978f00] __napi_poll at ffffffff8ceced1a #16 [ffffa25ec6978f28] net_rx_action at ffffffff8cecf1f3 #17 [ffffa25ec6978fa0] __softirqentry_text_start at ffffffff8d4000ca #18 [ffffa25ec6978ff0] do_softirq at ffffffff8c6fbdc3 Reproducer: https://github.com/Mellanox/ovs-tests/blob/master/test-ovs-vxlan-remove-tunnel-during-traffic.sh Fix this by waiting for all sk_user_data reader to finish before releasing the sock.
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存在安全漏洞,该漏洞源于vxlan设备删除时未等待所有sk_user_data读取完成,可能导致空指针取消引用。
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d ~ e8316584b0a6c61c9c407631040c22712b26e38c -
LinuxLinux 3.18 -

II. Public POCs for CVE-2022-50405

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50405

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-18 · 121 CVEs total

CVE-2022-504109.8 CRITICALNFSD: Protect against send buffer overflow in NFSv2 READ
CVE-2022-504019.8 CRITICALnfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure
CVE-2023-533829.8 CRITICALnet/smc: Reset connection when trying to use SMCRv2 fails.
CVE-2022-504198.8 HIGHBluetooth: hci_sysfs: Fix attempting to call device_add multiple times
CVE-2022-504138.8 HIGHwifi: mac80211: fix use-after-free
CVE-2023-534318.8 HIGHscsi: ses: Handle enclosure with just a primary component gracefully
CVE-2023-534328.8 HIGHfirewire: net: fix use after free in fwnet_finish_incoming_packet()
CVE-2023-533748.8 HIGHBluetooth: hci_conn: fail SCO/ISO via hci_conn_failed if ACL gone early
CVE-2022-503868.8 HIGHBluetooth: L2CAP: Fix user-after-free
CVE-2023-533728.2 HIGHsctp: fix a potential overflow in sctp_ifwdtsn_skip
CVE-2022-503997.8 HIGHmedia: atomisp: prevent integer overflow in sh_css_set_black_frame()
CVE-2023-533987.8 HIGHmlx5: fix possible ptp queue fifo use-after-free
CVE-2023-533947.8 HIGHnet/mlx5e: xsk: Fix crash on regular rq reactivation
CVE-2022-504177.8 HIGHdrm/panfrost: Fix GEM handle creation ref-counting
CVE-2023-534297.8 HIGHbtrfs: don't check PageError in __extent_writepage
CVE-2023-533737.8 HIGHcrypto: seqiv - Handle EBUSY correctly
CVE-2023-533877.8 HIGHscsi: ufs: core: Fix device management cmd timeout flow
CVE-2023-533787.8 HIGHdrm/i915/dpt: Treat the DPT BO as a framebuffer
CVE-2023-533867.8 HIGHBluetooth: Fix potential use-after-free when clear keys
CVE-2023-534267.8 HIGHxsk: Fix xsk_diag use-after-free error during socket cleanup

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

IV. Related Vulnerabilities

V. Comments for CVE-2022-50405

No comments yet


Leave a comment