KernelScan.io

HIGH Introduced in 5.7

mtd GluebiPartition TypeConfusion

CVE-2026-98833

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: mtd: core: call _get_device() with the master MTD __get_mtd_device() calls the master's _get_device() callback with mtd, which may be a partition. __put_mtd_device() passes the master. This breaks gluebi partitions because gluebi_get_device() uses container_of() and therefore requires the master MTD. Pass the master to _get_device(), matching _put_device().

02

Engine v0.9.0

Risk summary

A local attacker with access to MTD character devices can trigger a type confusion in the gluebi driver by opening a partition, causing the kernel to compute an incorrect structure address via container_of(). This leads to memory corruption that can be exploited for privilege escalation or kernel crash. Systems using UBI/gluebi on MTD partitions (common in embedded devices) are at risk.

Affecteddrivers/mtd/mtdcore.c (mtd subsystem)

Vulnerability analysis

The MTD core's __get_mtd_device() function incorrectly passes a partition pointer to the master device's _get_device() callback, while the corresponding __put_mtd_device() correctly passes the master pointer. The gluebi driver's _get_device() callback uses container_of() on the received pointer expecting the master MTD structure; when a partition pointer is passed instead, the container_of() calculation yields an invalid gluebi structure address. Subsequent dereferences of this bogus pointer corrupt kernel memory. The fix aligns __get_mtd_device() with __put_mtd_device() by passing the master pointer. The vulnerability is reachable by any local process that can open an MTD partition backed by gluebi (typically requiring root or CAP_SYS_ADMIN, but potentially accessible to container workloads if the MTD device node is passed through or has permissive permissions).

03

BranchIntroducedFixed inPatch commit
5.155.75.15.224522e821e4165
6.15.76.1.191e7e37358408b
6.125.76.12.11395c8f36293c2
6.185.76.18.56f971f1c63cf7
6.65.76.6.160d94731cafa57
7.25.77.2.10dc482a281a19
mainline5.77.312b31d1acd20
cip/6.125.76.12.114-cip3495c8f36293c2

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)