mtd: require write permissions for locking and badblock ioctls
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v4.9.269 by commit 9625b00cac6630479c0ff4b9fafa88bee636e1f0, it was introduced in version v4.9.233 by commit 583d42400532fbd6228b0254d7c732b771e4750d. For more details please see the references link.