Skip to main content

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix use-after-free and multi-container gap in kfd_dev_mapping… (CVE-2026-98520)

0
High
Published: 10/18/2026 (10/18/2026, 18:31:52 UTC)
Source: GCVE Database

Description

A use-after-free and multi-container mapping gap vulnerability in the Linux kernel's drm/amdkfd component has been resolved. The issue involves kfd_dev_mapping caching the address_space of only the first /dev/kfd opener, leading to a dangling pointer after the first container exits and stale mappings for subsequent containers. This can cause GPU reset hangs and stale doorbell/MMIO page mappings accessible to guest users, risking PCIe transaction timeouts and NMI panics. The fix involves redirecting all openers' file mappings to a single anonymous inode's address_space owned by the module, preventing dangling pointers and ensuring all mappings are correctly unmapped during GPU reset.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 20:34:10 UTC

Technical Analysis

The vulnerability in the Linux kernel's drm/amdkfd subsystem arises from kfd_dev_mapping caching the address_space of only the first /dev/kfd opener. When the first container exits, its inode is released, leaving kfd_dev_mapping with a dangling pointer. A subsequent GPU reset dereferences this freed inode, causing a hard hang due to an uninterruptible rwsem wait. Additionally, mappings from later openers reside in different address_spaces and are not unmapped during GPU reset, leaving stale doorbell and MMIO pages accessible to guest users without GPU backing, which risks PCIe transaction timeouts and NMI panics. The fix, adopted from DRM core, creates a private pseudo-filesystem and allocates a single anonymous inode at module initialization. All openers' file mappings are redirected to this inode's address_space, which lives as long as the amdgpu module, ensuring all VMAs are collected in one address_space and properly unmapped during GPU reset, eliminating dangling pointer risks and stale mappings.

Potential Impact

The vulnerability can cause a system hang during GPU reset due to a use-after-free condition leading to an uninterruptible wait on a corrupted semaphore. It also allows stale memory mappings of doorbell and MMIO pages to remain accessible to guest users after GPU reset, potentially causing PCIe transaction timeouts and non-maskable interrupt (NMI) panics. These issues affect system stability and reliability in environments using SRIOV with multiple containers.

Mitigation Recommendations

A fix has been implemented in the Linux kernel drm/amdkfd subsystem that addresses both the use-after-free and multi-container mapping gap issues by redirecting all openers' file mappings to a single anonymous inode's address_space owned by the module. Users should update to the kernel version containing this fix. Patch status is not explicitly stated in the provided data; therefore, check the vendor or Linux kernel advisory for the exact fixed versions and update accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-x886-mwj9-qhhg
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98520"]

Threat ID: 6ad520af2cdf04f656993ad0

Added to database: 10/18/2026, 19:40:31 UTC

Last enriched: 10/18/2026, 20:34:10 UTC

Last updated: 10/18/2026, 22:02:57 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses