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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-47140— iommu/amd: Clear DMA ops when switching domain

EPSS 0.05% · P14
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2021-47140

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
iommu/amd: Clear DMA ops when switching domain
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Clear DMA ops when switching domain Since commit 08a27c1c3ecf ("iommu: Add support to change default domain of an iommu group") a user can switch a device between IOMMU and direct DMA through sysfs. This doesn't work for AMD IOMMU at the moment because dev->dma_ops is not cleared when switching from a DMA to an identity IOMMU domain. The DMA layer thus attempts to use the dma-iommu ops on an identity domain, causing an oops: # echo 0000:00:05.0 > /sys/sys/bus/pci/drivers/e1000e/unbind # echo identity > /sys/bus/pci/devices/0000:00:05.0/iommu_group/type # echo 0000:00:05.0 > /sys/sys/bus/pci/drivers/e1000e/bind ... BUG: kernel NULL pointer dereference, address: 0000000000000028 ... Call Trace: iommu_dma_alloc e1000e_setup_tx_resources e1000e_open Since iommu_change_dev_def_domain() calls probe_finalize() again, clear the dma_ops there like Vt-d does.
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存在安全漏洞,该漏洞源于切换域时不会清除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 08a27c1c3ecf5e1da193ce5f8fc97c3be16e75f0 ~ f3f2cf46291a693eab21adb94171b0128c2a9ec1 -
LinuxLinux 5.11 -

II. Public POCs for CVE-2021-47140

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-47140

登录查看更多情报信息。

Same Patch Batch · Linux · 2024-03-25 · 40 CVEs total

CVE-2021-47171net: usb: fix memory leak in smsc75xx_bind
CVE-2021-47162tipc: skb_linearize the head skb when reassembling msgs
CVE-2021-47163tipc: wait and exit until all work queues are done
CVE-2021-47164net/mlx5e: Fix null deref accessing lag dev
CVE-2021-47165drm/meson: fix shutdown crash when component not probed
CVE-2021-47166NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
CVE-2021-47167NFS: Fix an Oopsable condition in __nfs_pageio_add_request()
CVE-2021-47168NFS: fix an incorrect limit in filelayout_decode_layout()
CVE-2021-47169serial: rp2: use 'request_firmware' instead of 'request_firmware_nowait'
CVE-2021-47170USB: usbfs: Don't WARN about excessively large memory allocations
CVE-2021-47161spi: spi-fsl-dspi: Fix a resource leak in an error handling path
CVE-2021-47172iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers
CVE-2021-47173misc/uss720: fix memory leak in uss720_probe
CVE-2021-47174netfilter: nft_set_pipapo_avx2: Add irq_fpu_usable() check, fallback to non-AVX2 version
CVE-2021-47175net/sched: fq_pie: fix OOB access in the traffic path
CVE-2021-47176s390/dasd: add missing discipline function
CVE-2021-47177iommu/vt-d: Fix sysfs leak in alloc_iommu()
CVE-2021-47178scsi: target: core: Avoid smp_processor_id() in preemptible code
CVE-2021-47179NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()
CVE-2021-47180NFC: nci: fix memory leak in nci_allocate_device

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

IV. Related Vulnerabilities

V. Comments for CVE-2021-47140

No comments yet


Leave a comment