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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2021-47130— nvmet: fix freeing unallocated p2pmem

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 存在安全漏洞,该漏洞源于 nvmet 模块释放未分配的 p2pmem。

CVSS 7.5 · High EPSS 0.64% · P49

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux c6e3f13398123a008cd2ee28f93510b113a32791< c440cd080761b18a52cac20f2a42e5da1e3995af affected
c6e3f13398123a008cd2ee28f93510b113a32791< 8a452d62e7cea3c8a2676a3b89a9118755a1a271 affected
c6e3f13398123a008cd2ee28f93510b113a32791< bcd9a0797d73eeff659582f23277e7ab6e5f18f3 affected
5.8 affected
< 5.8 unaffected
5.10.43≤ 5.10.* unaffected
5.12.10≤ 5.12.* unaffected
5.13≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-47130

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
nvmet: fix freeing unallocated p2pmem
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: nvmet: fix freeing unallocated p2pmem In case p2p device was found but the p2p pool is empty, the nvme target is still trying to free the sgl from the p2p pool instead of the regular sgl pool and causing a crash (BUG() is called). Instead, assign the p2p_dev for the request only if it was allocated from p2p pool. This is the crash that was caused: [Sun May 30 19:13:53 2021] ------------[ cut here ]------------ [Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518! [Sun May 30 19:13:53 2021] invalid opcode: 0000 [#1] SMP PTI ... [Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518! ... [Sun May 30 19:13:53 2021] RIP: 0010:gen_pool_free_owner+0xa8/0xb0 ... [Sun May 30 19:13:53 2021] Call Trace: [Sun May 30 19:13:53 2021] ------------[ cut here ]------------ [Sun May 30 19:13:53 2021] pci_free_p2pmem+0x2b/0x70 [Sun May 30 19:13:53 2021] pci_p2pmem_free_sgl+0x4f/0x80 [Sun May 30 19:13:53 2021] nvmet_req_free_sgls+0x1e/0x80 [nvmet] [Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518! [Sun May 30 19:13:53 2021] nvmet_rdma_release_rsp+0x4e/0x1f0 [nvmet_rdma] [Sun May 30 19:13:53 2021] nvmet_rdma_send_done+0x1c/0x60 [nvmet_rdma]
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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 存在安全漏洞,该漏洞源于 nvmet 模块释放未分配的 p2pmem。
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 c6e3f13398123a008cd2ee28f93510b113a32791 ~ c440cd080761b18a52cac20f2a42e5da1e3995af -
Linux Linux 5.8 -

II. Public POCs for CVE-2021-47130

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-47130

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

Patches & Fixes for CVE-2021-47130 (1)

Other References for CVE-2021-47130 (2)

Same Patch Batch · Linux · 2024-03-15 · 26 CVEs total

CVE-2021-47111 8.8 HIGH xen-netback: take a reference to the RX task thread
CVE-2021-47131 8.1 HIGH net/tls: Fix use-after-free after the TLS device goes down and up
CVE-2021-47135 7.8 HIGH mt76: mt7921: fix possible AOOB issue in mt7921_mcu_tx_rate_report
CVE-2021-47112 7.8 HIGH x86/kvm: Teardown PV features on boot CPU as well
CVE-2021-47129 7.8 HIGH netfilter: nft_ct: skip expectations for confirmed conntrack
CVE-2021-47123 7.8 HIGH io_uring: fix ltout double free on completion race
CVE-2021-47124 7.8 HIGH io_uring: fix link timeout refs
CVE-2021-47126 7.8 HIGH ipv6: Fix KASAN: slab-out-of-bounds Read in fib6_nh_flush_exceptions
CVE-2021-47132 7.5 HIGH mptcp: fix sk_forward_memory corruption on retransmission
CVE-2021-47109 7.5 HIGH neighbour: allow NUD_NOARP entries to be forced GCed
CVE-2021-47113 7.1 HIGH btrfs: abort in rename_exchange if we fail to insert the second ref
CVE-2021-47122 net: caif: fix memory leak in caif_device_notify
CVE-2021-47134 efi/fdt: fix panic when no valid fdt found
CVE-2021-47133 HID: amd_sfh: Fix memory leak in amd_sfh_work
CVE-2021-47128 bpf, lockdown, audit: Fix buggy SELinux lockdown permission checks
CVE-2021-47127 ice: track AF_XDP ZC enabled queues in bitmap
CVE-2021-47125 sch_htb: fix refcount leak in htb_parent_to_leaf_offload
CVE-2021-47121 net: caif: fix memory leak in cfusbl_device_notify
CVE-2021-47120 HID: magicmouse: fix NULL-deref on disconnect
CVE-2021-47119 ext4: fix memory leak in ext4_fill_super

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-47130

No comments yet


Leave a comment