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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-50679— i40e: Fix DMA mappings leak

AI Predicted 5.5 Difficulty: Easy EPSS 0.24% · P15

Possible ATT&CK Techniques 1AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 10

VendorProductVersion RangeStatus
LinuxLinuxbe1222b585fdc410b8c1dbcc57dd03a00f04eff5< ed5baf3d0a33caaca4cd4073ebb0854cc77a616daffected
be1222b585fdc410b8c1dbcc57dd03a00f04eff5< 94a171c982b8a8137a00721c1e62bc2713435bcaaffected
be1222b585fdc410b8c1dbcc57dd03a00f04eff5< 5f499596dfa3db9b3172645b6de9e1096a669c95affected
be1222b585fdc410b8c1dbcc57dd03a00f04eff5< aae425efdfd1b1d8452260a3cb49344ebf20b1f5affected
5.8affected
< 5.8unaffected
5.10.152≤ 5.10.*unaffected
5.15.76≤ 5.15.*unaffected
… +2 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2022-50679

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
i40e: Fix DMA mappings leak
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: i40e: Fix DMA mappings leak During reallocation of RX buffers, new DMA mappings are created for those buffers. steps for reproduction: while : do for ((i=0; i<=8160; i=i+32)) do ethtool -G enp130s0f0 rx $i tx $i sleep 0.5 ethtool -g enp130s0f0 done done This resulted in crash: i40e 0000:01:00.1: Unable to allocate memory for the Rx descriptor ring, size=65536 Driver BUG WARNING: CPU: 0 PID: 4300 at net/core/xdp.c:141 xdp_rxq_info_unreg+0x43/0x50 Call Trace: i40e_free_rx_resources+0x70/0x80 [i40e] i40e_set_ringparam+0x27c/0x800 [i40e] ethnl_set_rings+0x1b2/0x290 genl_family_rcv_msg_doit.isra.15+0x10f/0x150 genl_family_rcv_msg+0xb3/0x160 ? rings_fill_reply+0x1a0/0x1a0 genl_rcv_msg+0x47/0x90 ? genl_family_rcv_msg+0x160/0x160 netlink_rcv_skb+0x4c/0x120 genl_rcv+0x24/0x40 netlink_unicast+0x196/0x230 netlink_sendmsg+0x204/0x3d0 sock_sendmsg+0x4c/0x50 __sys_sendto+0xee/0x160 ? handle_mm_fault+0xbe/0x1e0 ? syscall_trace_enter+0x1d3/0x2c0 __x64_sys_sendto+0x24/0x30 do_syscall_64+0x5b/0x1a0 entry_SYSCALL_64_after_hwframe+0x65/0xca RIP: 0033:0x7f5eac8b035b Missing register, driver bug WARNING: CPU: 0 PID: 4300 at net/core/xdp.c:119 xdp_rxq_info_unreg_mem_model+0x69/0x140 Call Trace: xdp_rxq_info_unreg+0x1e/0x50 i40e_free_rx_resources+0x70/0x80 [i40e] i40e_set_ringparam+0x27c/0x800 [i40e] ethnl_set_rings+0x1b2/0x290 genl_family_rcv_msg_doit.isra.15+0x10f/0x150 genl_family_rcv_msg+0xb3/0x160 ? rings_fill_reply+0x1a0/0x1a0 genl_rcv_msg+0x47/0x90 ? genl_family_rcv_msg+0x160/0x160 netlink_rcv_skb+0x4c/0x120 genl_rcv+0x24/0x40 netlink_unicast+0x196/0x230 netlink_sendmsg+0x204/0x3d0 sock_sendmsg+0x4c/0x50 __sys_sendto+0xee/0x160 ? handle_mm_fault+0xbe/0x1e0 ? syscall_trace_enter+0x1d3/0x2c0 __x64_sys_sendto+0x24/0x30 do_syscall_64+0x5b/0x1a0 entry_SYSCALL_64_after_hwframe+0x65/0xca RIP: 0033:0x7f5eac8b035b This was caused because of new buffers with different RX ring count should substitute older ones, but those buffers were freed in i40e_configure_rx_ring and reallocated again with i40e_alloc_rx_bi, thus kfree on rx_bi caused leak of already mapped DMA. Fix this by reallocating ZC with rx_bi_zc struct when BPF program loads. Additionally reallocate back to rx_bi when BPF program unloads. If BPF program is loaded/unloaded and XSK pools are created, reallocate RX queues accordingly in XSP_SETUP_XSK_POOL handler.
Source: CVE Program / CVE List V5
CVSS Information
N/A
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存在安全漏洞,该漏洞源于i40e中DMA映射泄漏,可能导致内存耗尽。
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 be1222b585fdc410b8c1dbcc57dd03a00f04eff5 ~ ed5baf3d0a33caaca4cd4073ebb0854cc77a616d -
LinuxLinux 5.8 -

II. Public POCs for CVE-2022-50679

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50679

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-12-09 · 152 CVEs total

CVE-2025-403439.8 CRITICALnvmet-fc: avoid scheduling association deletion twice
CVE-2023-537949.8 CRITICALcifs: fix session state check in reconnect to avoid use-after-free issue
CVE-2022-506669.8 CRITICALRDMA/siw: Fix QP destroy to wait for all references dropped.
CVE-2023-538278.8 HIGHBluetooth: L2CAP: Fix use-after-free in l2cap_disconnect_{req,rsp}
CVE-2023-537858.8 HIGHmt76: mt7921: don't assume adequate headroom for SDIO headers
CVE-2023-538228.8 HIGHwifi: ath11k: Ignore frags from uninitialized peer in dp.
CVE-2025-403368.8 HIGHdrm/gpusvm: fix hmm_pfn_to_map_order() usage
CVE-2025-403428.8 HIGHnvme-fc: use lock accessing port_state and rport state
CVE-2025-403288.8 HIGHsmb: client: fix potential UAF in smb2_close_cached_fid()
CVE-2023-538518.4 HIGHdrm/msm/dp: Drop aux devices together with DP controller
CVE-2025-403378.2 HIGHnet: stmmac: Correctly handle Rx checksum offload errors
CVE-2022-506568.1 HIGHnfc: pn533: Clear nfc_target before being used
CVE-2023-538038.1 HIGHscsi: ses: Fix slab-out-of-bounds in ses_enclosure_data_process()
CVE-2023-538047.8 HIGHnilfs2: fix use-after-free bug of nilfs_root in nilfs_evict_inode()
CVE-2023-538197.8 HIGHamdgpu: validate offset_in_bo of drm_amdgpu_gem_va
CVE-2023-538167.8 HIGHdrm/amdkfd: fix potential kgd_mem UAFs
CVE-2023-538007.8 HIGHubi: Fix use-after-free when volume resizing failed
CVE-2023-537907.8 HIGHbpf: Zeroing allocated object from slab in bpf memory allocator
CVE-2023-537957.8 HIGHiommufd: IOMMUFD_DESTROY should not increase the refcount
CVE-2023-538107.8 HIGHblk-mq: release crypto keyslot before reporting I/O complete

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

IV. Related Vulnerabilities

V. Comments for CVE-2022-50679

No comments yet


Leave a comment