Description (CNA)
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().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 46b5889cc2c54bac7d7e727a44d28a298df23cef before d94731cafa57e2c986ff391122d1494e5a3f3c3f; affected 46b5889cc2c54bac7d7e727a44d28a298df23cef before 95c8f36293c22d450c371167ad4f9a5bbadc7539; affected 46b5889cc2c54bac7d7e727a44d28a298df23cef before f971f1c63cf71579258360a12bd185bc1cd1a043; affected 46b5889cc2c54bac7d7e727a44d28a298df23cef before dc482a281a19a7d7e91ad1b2d551bb301c54d0e6; affected 46b5889cc2c54bac7d7e727a44d28a298df23cef before 12b31d1acd20b3185bb5f0748db0cf6874c8e9d1 |
| Linux / Linux | affected 5.7; unaffected 0 before 5.7; unaffected 6.6.160 through 6.6.*; unaffected 6.12.113 through 6.12.*; unaffected 6.18.56 through 6.18.*; unaffected 7.2.10 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/d94731cafa57e2c986ff391122d1494e5a3f3c3f
- 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