Skip to main content

In the Linux kernel, the following vulnerability has been resolved: nitro_enclaves: fix use-after-free on SLOT_ALLOC failure When… (CVE-2026-98775)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:32:02 UTC)
Source: GCVE Database

Description

A use-after-free vulnerability in the Linux kernel's nitro_enclaves component was fixed. The flaw occurs when ne_create_vm_ioctl() fails the SLOT_ALLOC request after anon_inode_getfile() succeeds, leading to a use-after-free in ne_enclave_release() due to improper handling of enclave_file->private_data. This causes a kernel slab-use-after-free error detected by KASAN. The patch clears private_data before fput() to prevent dereferencing freed memory, ensuring safe error handling without affecting normal enclave operations.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:22:56 UTC

Technical Analysis

The vulnerability in the Linux kernel's nitro_enclaves arises from a use-after-free condition triggered when the SLOT_ALLOC request fails after anon_inode_getfile() has succeeded in ne_create_vm_ioctl(). The error path calls fput(enclave_file) and frees ne_enclave, but ne_enclave_release() runs after ne_enclave is freed, dereferencing ne_enclave->slot_uid and causing a KASAN slab-use-after-free. The root cause is that enclave_file->private_data is not cleared before fput(), leading to delayed release logic accessing freed memory. The fix clears private_data before fput(), causing ne_enclave_release() to return immediately when private_data is NULL, preventing use-after-free. This fix was tested on AWS EC2 with CONFIG_KASAN=y and prevents the KASAN error without affecting normal enclave creation or teardown.

Potential Impact

This vulnerability causes a kernel use-after-free condition that can lead to memory corruption and potential kernel crashes or undefined behavior. It is detected by KASAN as a slab-use-after-free error. There is no indication of active exploitation in the wild. The impact is limited to error paths during enclave creation failures and does not affect normal enclave operations.

Mitigation Recommendations

A fix is available that clears enclave_file->private_data before calling fput() on the error path, preventing use-after-free in ne_enclave_release(). Applying the official patch or updating to a kernel version that includes this fix is recommended. No additional mitigation is required as the patch safely handles the error path without impacting normal functionality.

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-8pj3-87fr-9h94
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98775"]

Threat ID: 6ad520ab2cdf04f6569939c0

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

Last enriched: 10/18/2026, 22:22:56 UTC

Last updated: 10/18/2026, 22:22:56 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