# CVE-2021-42257: checksmart before 6.9.1 allows unintended drive access by an unprivileged user because it only checks for a substring match of a device pat…

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-10-11T00:00:00.000Z
- Modified: 2026-06-17T04:09:31.390Z
- Weaknesses: CWE-20
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- check_smart_project check_smart: before 6.9.1

## Every score

- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 3.6 Low `AV:L/AC:L/Au:N/C:N/I:P/A:P`

## References

- <https://bugzilla.suse.com/show_bug.cgi?id=1183057> (exploit, issue-tracking, patch, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2021/10/14/2> (exploit, mailing-list, third-party-advisory)
- <https://www.claudiokuenzler.com/monitoring-plugins/check_smart.php> (third-party-advisory)
- <https://www.claudiokuenzler.com/blog/1068/check_smart-6.9.1-security-fix-release-pseudo-device-path> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42257>

## Sources

- CVE List: [CVE-2021-42257](https://www.cve.org/CVERecord?id=CVE-2021-42257), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-42257](https://nvd.nist.gov/vuln/detail/CVE-2021-42257), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42257 · Whole record: https://cve.day/CVE-2021-42257.json · Rebuilt by cve.day 2026-11-25T22:58:04.421Z
