# CVE-2026-98884: mmc: core: Add validation for host-provided max\_segs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-28)
- **Published:** 2026-10-23T11:37:39.893Z
- **Modified:** 2026-10-26T07:17:13.327Z

## Who should check

- Anyone running Linux \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 03f5a16ec85beebabd5ab5e67ac1527f87908ded; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< c465608bd25d7f8565be7817a6a36a5d69f8aa14; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< a8283f7d93f0d9336b15618b9665279ff6944319; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 9cca3c0c1472d6204ef8a78a6e7b3afe9610b22e; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< b037c2f7794aa01ee2a00e43c29645fd2dd2dfb9; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 3e0483e93a8be320f70a1ff68d835f7f015af311
- Anyone running Linux 2.6.24

## Description

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 type unsigned short, and if a host driver
sets an excessively large value, it may be truncated to zero. This
can cause mmc\_alloc\_sg() to call kmalloc\_objs() with a zero size
allocation request, which leads to undefined behavior.

Under the SLUB allocator, kmalloc(0) returns a special pointer
(ZERO\_SIZE\_PTR). The subsequent 'if (sg)' check will evaluate to
true, and sg\_init\_table() will then attempt to access invalid memory,
resulting in a crash:

dwmmc\_rockchip 2a310000.mmc: Successfully tuned phase to 133
mmc1: new UHS-I speed SDR104 SDHC card at address aaaa
Unable to handle kernel paging request at virtual address 0000001ffffffff0
Mem abort info:
ESR = 0x0000000096000004
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x04: level 0 translation fault
Data abort info:
ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000
CM = 0, WnR = 0, TnD = 0, TagAccess = 0
GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
user pgtable: 4k pages, 48-bit VAs, pgdp=0000000102c88000
\[0000001ffffffff0\] pgd=0000000000000000, p4d=0000000000000000
Internal error: Oops: 0000000096000004 \[\#1\] SMP
Modules linked in:
CPU: 2 UID: 0 PID: 102 Comm: kworker/2:1 Not tainted 7.0.0-rc6-next-20260331-00013-g4d93c25963c5-dirty \#80 PREEMPT
Hardware name: Rockchip RK3576 EVB V10 Board (DT)
Workqueue: events\_freezable mmc\_rescan
pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : sg\_init\_table+0x2c/0x50
lr : sg\_init\_table+0x24/0x50
sp : ffff8000837db710
x29: ffff8000837db710 x28: 000000000000c000 x27: 0000000000000300
x26: 0000000000000000 x25: 0000000000000040 x24: ffff0000c46a0000
x23: 0000000000000000 x22: ffff0000c0c73c00 x21: 0000000000000010
x20: 0000000000000010 x19: 0000000000000000 x18: 000000000000002c
x17: 0000000000000000 x16: 0000000000000001 x15: 0000000000000000
x14: 0000000000000400 x13: ffff8000837dc000 x12: 0000000000000000
x11: ffff0000c0c73ca0 x10: 0000000000000040 x9 : 459ec1f0abbdbb00
x8 : 0000001fffffffe0 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000035579 x4 : 0000000000000901 x3 : 0000000000000000
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000010
Call trace:
sg\_init\_table+0x2c/0x50 (P)
mmc\_mq\_init\_request+0x64/0x90
blk\_mq\_alloc\_map\_and\_rqs+0x3ac/0x480
blk\_mq\_alloc\_set\_map\_and\_rqs+0x98/0x1e0
blk\_mq\_alloc\_tag\_set+0x1c0/0x290
mmc\_init\_queue+0x120/0x370
mmc\_blk\_alloc\_req+0x150/0x420

To prevent this, add a validation check in mmc\_mq\_init\_request() to
detect when sg\_len (derived from max\_segs) is zero. If sg\_len is zero,
we return an error and print an error message, allowing host driver
developers to identify and fix incorrect max\_segs configuration.

This is a defensive measure that ensures the MMC core fails gracefully
when host drivers provide invalid max\_segs values, rather than crashing
with a page fault.

## Affected and fixed versions

- Linux: \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 03f5a16ec85beebabd5ab5e67ac1527f87908ded; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< c465608bd25d7f8565be7817a6a36a5d69f8aa14; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< a8283f7d93f0d9336b15618b9665279ff6944319; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 9cca3c0c1472d6204ef8a78a6e7b3afe9610b22e; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< b037c2f7794aa01ee2a00e43c29645fd2dd2dfb9; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 3e0483e93a8be320f70a1ff68d835f7f015af311 (cvelist)
- Linux: 2.6.24 (cvelist)

## Mitigation

- Upgrade Linux to 3e0483e93a8be320f70a1ff68d835f7f015af311 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98884. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98884.md
Affected: Linux >= 05e5b136459b11cd9559370d5756719e08074fe0, < 03f5a16ec85beebabd5ab5e67ac1527f87908ded; >= 05e5b136459b11cd9559370d5756719e08074fe0, < c465608bd25d7f8565be7817a6a36a5d69f8aa14; >= 05e5b136459b11cd9559370d5756719e08074fe0, < a8283f7d93f0d9336b15618b9665279ff6944319; >= 05e5b136459b11cd9559370…
Fixed in: Linux 03f5a16ec85beebabd5ab5e67ac1527f87908ded, Linux 9cca3c0c1472d6204ef8a78a6e7b3afe9610b22e, Linux 3e0483e93a8be320f70a1ff68d835f7f015af311

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98884 being exploited?

There is no confirmed exploitation: CVE-2026-98884 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-98884?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98884?

Linux \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 03f5a16ec85beebabd5ab5e67ac1527f87908ded; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< c465608bd25d7f8565be7817a6a36a5d69f8aa14; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< a8283f7d93f0d9336b15618b9665279ff6944319; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 9cca3c0c1472d6204ef8a78a6e7b3afe9610b22e; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< b037c2f7794aa01ee2a00e43c29645fd2dd2dfb9; \>= 05e5b136459b11cd9559370d5756719e08074fe0, \< 3e0483e93a8be320f70a1ff68d835f7f015af311; Linux 2.6.24.

### Is there a fix for CVE-2026-98884?

Yes. Fixed in Linux 03f5a16ec85beebabd5ab5e67ac1527f87908ded, Linux 9cca3c0c1472d6204ef8a78a6e7b3afe9610b22e, Linux 3e0483e93a8be320f70a1ff68d835f7f015af311. Upgrade Linux to 3e0483e93a8be320f70a1ff68d835f7f015af311 or later.

### How do I check if I'm affected by CVE-2026-98884?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/03f5a16ec85beebabd5ab5e67ac1527f87908ded>
- other: <https://git.kernel.org/stable/c/c465608bd25d7f8565be7817a6a36a5d69f8aa14>
- other: <https://git.kernel.org/stable/c/a8283f7d93f0d9336b15618b9665279ff6944319>
- other: <https://git.kernel.org/stable/c/9cca3c0c1472d6204ef8a78a6e7b3afe9610b22e>
- other: <https://git.kernel.org/stable/c/b037c2f7794aa01ee2a00e43c29645fd2dd2dfb9>
- other: <https://git.kernel.org/stable/c/3e0483e93a8be320f70a1ff68d835f7f015af311>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98884>

HTML: <https://flawdb.com/CVE-2026-98884> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98884>
