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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-47200— drm/prime: Fix use after free in mmap with drm_gem_ttm_mmap

EPSS 0.01% · P2
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2021-47200

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
drm/prime: Fix use after free in mmap with drm_gem_ttm_mmap
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: drm/prime: Fix use after free in mmap with drm_gem_ttm_mmap drm_gem_ttm_mmap() drops a reference to the gem object on success. If the gem object's refcount == 1 on entry to drm_gem_prime_mmap(), that drop will free the gem object, and the subsequent drm_gem_object_get() will be a UAF. Fix by grabbing a reference before calling the mmap helper. This issue was forseen when the reference dropping was adding in commit 9786b65bc61ac ("drm/ttm: fix mmap refcounting"): "For that to work properly the drm_gem_object_get() call in drm_gem_ttm_mmap() must be moved so it happens before calling obj->funcs->mmap(), otherwise the gem refcount would go down to zero."
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于drm_gem_ttm_mmap存在释放后重用漏洞。
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 9786b65bc61acec63f923978c75e707afbb74bc7 ~ 4f8e469a2384dfa4047145b0093126462cbb6dc0 -
LinuxLinux 5.5 -

II. Public POCs for CVE-2021-47200

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-47200

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-04-10 · 39 CVEs total

CVE-2021-47210usb: typec: tipd: Remove WARN_ON in tps6598x_block_read
CVE-2021-47199net/mlx5e: CT, Fix multiple allocations and memleak of mod acts
CVE-2021-47201iavf: free q_vectors before queues in iavf_disable_vf
CVE-2021-47202thermal: Fix NULL pointer dereferences in of_thermal_ functions
CVE-2021-47203scsi: lpfc: Fix list_add() corruption in lpfc_drain_txq()
CVE-2021-47204net: dpaa2-eth: fix use-after-free in dpaa2_eth_remove
CVE-2021-47205clk: sunxi-ng: Unregister clocks/resets when unbinding
CVE-2021-47206usb: host: ohci-tmio: check return value after calling platform_get_resource()
CVE-2021-47207ALSA: gus: fix null pointer dereference on pointer block
CVE-2021-47209sched/fair: Prevent dead task groups from regaining cfs_rq's
CVE-2021-47198scsi: lpfc: Fix use-after-free in lpfc_unreg_rpi() routine
CVE-2021-47211ALSA: usb-audio: fix null pointer dereference on pointer cs_desc
CVE-2021-47212net/mlx5: Update error handler for UCTX and UMEM
CVE-2021-47214hugetlb, userfaultfd: fix reservation restore on userfaultfd error
CVE-2021-47215net/mlx5e: kTLS, Fix crash in RX resync flow
CVE-2021-47216scsi: advansys: Fix kernel pointer leak
CVE-2021-47217x86/hyperv: Fix NULL deref in set_hv_tscchange_cb() if Hyper-V setup fails
CVE-2021-47218selinux: fix NULL-pointer dereference when hashtab allocation fails
CVE-2021-47219scsi: scsi_debug: Fix out-of-bound read in resp_report_tgtpgs()
CVE-2021-47189btrfs: fix memory ordering between normal and ordered work functions

Showing top 20 of 39 CVEs. View all on vendor page → →

IV. Related Vulnerabilities

V. Comments for CVE-2021-47200

No comments yet


Leave a comment