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 v5.4.119 by commit 5880afefe0cb9b2d5e801816acd58bfe91a96981, it was introduced in version v5.4.58 by commit 9a53e8bd59d9f070505e51d3fd19606a270e6b93. For more details please see the references link.