Skip to main content

In the Linux kernel, the following vulnerability has been resolved: mtd: core: avoid double-free of OTP NVMEM device If factory OTP setup fails… (CVE-2026-98834)

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

Description

A double-free vulnerability in the Linux kernel's mtd core component related to the OTP NVMEM device has been resolved. The issue occurs if the factory OTP setup fails after the user OTP NVMEM device registration, leading to multiple unregister attempts without clearing the pointer. This flaw could cause kernel instability or crashes due to improper memory management.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:17:40 UTC

Technical Analysis

The vulnerability in the Linux kernel's mtd core involves a double-free condition of the OTP NVMEM device. Specifically, if the factory OTP setup fails after the user OTP NVMEM device has been registered, the function mtd_otp_nvmem_add() unregisters the user device but leaves the mtd->otp_user_nvmem pointer set. On error, the caller unregisters the device again, causing a double-free. Additionally, for the -EOPNOTSUPP error, registration continues and normal teardown unregisters the device again, also leading to double-free. The fix clears the mtd->otp_user_nvmem pointer after unregistering to prevent this condition.

Potential Impact

This vulnerability can lead to kernel memory corruption due to double-free, potentially causing system instability or crashes. There is no information about exploitation in the wild or direct security impact such as privilege escalation or information disclosure.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to clear the mtd->otp_user_nvmem pointer after unregistering the device, preventing the double-free condition. Users should apply the official kernel updates that include this fix. No additional mitigation steps are indicated.

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-cqw6-frjh-g7f6
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98834"]

Threat ID: 6ad520a92cdf04f6569938a8

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

Last enriched: 10/18/2026, 22:17:40 UTC

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