CVE-2026-98833: mtd: core: call _get_device() with the master MTD
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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().
The Linux kernel CVE team has assigned CVE-2026-98833 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 46b5889cc2c54bac7d7e727a44d28a298df23cef and fixed in 6.12.113 with commit 95c8f36293c22d450c371167ad4f9a5bbadc7539 Issue introduced in 5.7 with commit 46b5889cc2c54bac7d7e727a44d28a298df23cef and fixed in 6.18.56 with commit f971f1c63cf71579258360a12bd185bc1cd1a043 Issue introduced in 5.7 with commit 46b5889cc2c54bac7d7e727a44d28a298df23cef and fixed in 7.2.10 with commit dc482a281a19a7d7e91ad1b2d551bb301c54d0e6 Issue introduced in 5.7 with commit 46b5889cc2c54bac7d7e727a44d28a298df23cef and fixed in 7.3-rc6 with commit 12b31d1acd20b3185bb5f0748db0cf6874c8e9d1
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98833
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/mtd/mtdcore.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/95c8f36293c22d450c371167ad4f9a5bbadc7539 https://git.kernel.org/stable/c/f971f1c63cf71579258360a12bd185bc1cd1a043 https://git.kernel.org/stable/c/dc482a281a19a7d7e91ad1b2d551bb301c54d0e6 https://git.kernel.org/stable/c/12b31d1acd20b3185bb5f0748db0cf6874c8e9d1