CVE-2021-42257 json
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 pa…
published 5y ago modified 4mo ago also EUVD-2021-29233
- cvss
- 7.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Is CVE-2021-42257 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugzilla.suse.com https://bugzilla.suse.com/show_bug.cgi?id=1183057 referenced PoC, tagged "exploit" by a source, unverified
- openwall.com http://www.openwall.com/lists/oss-security/2021/10/14/2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | 2.0 | 3.6 | AV:L/AC:L/Au:N/C:N/I:P/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
bugzilla.suse.com
/show_bug.cgi?id=1183057
exploit, issue-tracking, patch, third-party-advisory
-
openwall.com
/lists/oss-security/2021/10/14/2
mailing-list, exploit, third-party-advisory
-
claudiokuenzler.com
/monitoring-plugins/check_smart.php
third-party-advisory
-
claudiokuenzler.com
/blog/1068/check_smart-6.9.1-security-fix-release-pseudo-device-path
third-party-advisory
- nvd.nist.gov /vuln/detail/CVE-2021-42257
Sources
- CVE List CVE-2021-42257
- NVD CVE-2021-42257
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.