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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-39958— iommu/s390: Make attach succeed when the device was surprise removed

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存在安全漏洞,该漏洞源于PCI设备意外移除时未正确处理IOMMU附加操作,可能导致设备状态不一致。

AI Predicted 5.9 Difficulty: Moderate EPSS 0.14% · P3

Affected Version Matrix 10

VendorProduct Version RangeStatus
Linux Linux 59bbf596791b89c7f88fdcac29dfc39c1221d25d< 3b32cf6e279597d1b6477fb89d46abf65263c139 affected
59bbf596791b89c7f88fdcac29dfc39c1221d25d< 79fa3a19aa6114189b33e2ba1f393b0f635d7544 affected
59bbf596791b89c7f88fdcac29dfc39c1221d25d< 359613f2fa009587154511e4842e8ab9532edd15 affected
59bbf596791b89c7f88fdcac29dfc39c1221d25d< 9ffaf5229055fcfbb3b3d6f1c7e58d63715c3f73 affected
6.2 affected
< 6.2 unaffected
6.6.160≤ 6.6.* unaffected
6.12.114≤ 6.12.* unaffected
… +2 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-39958

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/s390: Make attach succeed when the device was surprise removed
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: iommu/s390: Make attach succeed when the device was surprise removed When a PCI device is removed with surprise hotplug, there may still be attempts to attach the device to the default domain as part of tear down via (__iommu_release_dma_ownership()), or because the removal happens during probe (__iommu_probe_device()). In both cases zpci_register_ioat() fails with a cc value indicating that the device handle is invalid. This is because the device is no longer part of the instance as far as the hypervisor is concerned. Currently this leads to an error return and s390_iommu_attach_device() fails. This triggers the WARN_ON() in __iommu_group_set_domain_nofail() because attaching to the default domain must never fail. With the device fenced by the hypervisor no DMAs to or from memory are possible and the IOMMU translations have no effect. Proceed as if the registration was successful and let the hotplug event handling clean up the device. This is similar to how devices in the error state are handled since commit 59bbf596791b ("iommu/s390: Make attach succeed even if the device is in error state") except that for removal the domain will not be registered later. This approach was also previously discussed at the link. Handle both cases, error state and removal, in a helper which checks if the error needs to be propagated or ignored. Avoid magic number condition codes by using the pre-existing, but never used, defines for PCI load/store condition codes and rename them to reflect that they apply to all PCI instructions.
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存在安全漏洞,该漏洞源于PCI设备意外移除时未正确处理IOMMU附加操作,可能导致设备状态不一致。
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 59bbf596791b89c7f88fdcac29dfc39c1221d25d ~ 3b32cf6e279597d1b6477fb89d46abf65263c139 -
Linux Linux 6.2 -

II. Public POCs for CVE-2025-39958

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

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-39958

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

Patches & Fixes for CVE-2025-39958 (1)

Same Patch Batch · Linux · 2025-10-09 · 10 CVEs total

CVE-2025-39961 8.8 HIGH iommu/amd/pgtbl: Fix possible race while increase page table level
CVE-2025-39963 7.8 HIGH io_uring: fix incorrect io_kiocb reference in io_link_skb
CVE-2025-39956 7.8 HIGH igc: don't fail igc_probe() on LED setup error
CVE-2025-39962 7.5 HIGH rxrpc: Fix untrusted unsigned subtract
CVE-2025-39960 7.3 HIGH gpiolib: acpi: initialize acpi_gpio_info struct
CVE-2025-39957 7.1 HIGH wifi: mac80211: increase scan_ies_len for S1G
CVE-2025-39959 ASoC: amd: acp: Fix incorrect retrival of acp_chip_info
CVE-2025-39955 tcp: Clear tcp_sk(sk)->fastopen_rsk in tcp_disconnect().
CVE-2025-39954 clk: sunxi-ng: mp: Fix dual-divider clock rate readback

IV. Related Vulnerabilities

V. Comments for CVE-2025-39958

No comments yet


Leave a comment