mtd: core: call _get_device() with the master MTD
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 46b5889cc2c54bac7d7e727a44d28a298df23cef · < dc482a281a19a7d7e91ad1b2d551bb301c54d0e6| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel MTD core may pass a partition instead of the master MTD to the _get_device() callback, breaking gluebi partitions. The input does not describe an attacker action, access requirements, or user interaction.
Engineers running the Linux kernel with MTD gluebi partitions should check their systems; affected versions are not specified.