Description
check_smart before 6.9.1 allows unintended drive access by an unprivileged user because it only checks for a substring match of a device path (the /dev/bus substring and a number), aka an unanchored regular expression.
References
- https://www.claudiokuenzler.com/monitoring-plugins/check_smart.php
- https://www.claudiokuenzler.com/blog/1068/check_smart-6.9.1-security-fix-release-pseudo-device-path
- https://bugzilla.suse.com/show_bug.cgi?id=1183057
- [oss-security] 20211014 CVE-2021-42257: check_smart.pl: unprivileged user can alter hard drive settings mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2021-42257