Skip to main content

In the Linux kernel, the following vulnerability has been resolved: mmc: core: Add validation for host-provided max_segs The max_segs field is of… (CVE-2026-98884)

0
Medium
Published: 10/23/2026 (10/23/2026, 12:31:36 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel MMC core was resolved by adding validation for the host-provided max_segs field. The max_segs field is an unsigned short, and if set to an excessively large value by a host driver, it may be truncated to zero. This causes a zero-size allocation request in mmc_alloc_sg(), leading to undefined behavior and a kernel crash due to invalid memory access. The fix adds a validation check to detect zero sg_len and returns an error instead of crashing.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 19:06:30 UTC

Technical Analysis

The Linux kernel MMC core had a vulnerability where the max_segs field, an unsigned short, could be set by a host driver to a value so large that it truncated to zero. This zero value caused mmc_alloc_sg() to call kmalloc_objs() with a zero size allocation, which under the SLUB allocator returns a special pointer (ZERO_SIZE_PTR). Subsequent code incorrectly treated this pointer as valid and accessed invalid memory, causing a kernel crash (page fault). The issue was fixed by adding validation in mmc_mq_init_request() to detect when sg_len derived from max_segs is zero, returning an error and logging a message to prevent the crash and help developers fix the host driver configuration.

Potential Impact

If exploited, this vulnerability causes a kernel crash (denial of service) due to invalid memory access triggered by a zero-size allocation. It affects the stability of the system running the vulnerable Linux kernel MMC core when a host driver sets an invalid max_segs value. There is no indication of privilege escalation or data corruption beyond the crash.

Mitigation Recommendations

A fix is available that adds validation to the MMC core to detect invalid zero sg_len values derived from max_segs and returns an error instead of proceeding. Systems should apply the official Linux kernel patch that includes this validation. No other mitigation is 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-f98w-wx7q-xjvq
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98884"]

Threat ID: 6adbaad9d73cc49347b20732

Added to database: 10/23/2026, 18:43:37 UTC

Last enriched: 10/23/2026, 19:06:30 UTC

Last updated: 10/23/2026, 19:45:07 UTC

Views: 6

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