CVE-2012-5638
The setup_logging function in log.h in SANLock uses world-writable permissions for /var/log/sanlock.log, which allows local users to overwrite the file content or bypass intended disk-quota restrictions via standard filesystem write operations.
What to do
Fixed builds are available from Debian, Red Hat: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | sanlock | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | sanlock | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | sanlock | Not affected vulnerable_code_not_present | ||
| Debian 14 | sanlock | Fixed | 2.2-2 | DEBIAN-CVE-2012-5638 |
| Debian 13 | sanlock | Fixed | 2.2-2 | DEBIAN-CVE-2012-5638 |
| Debian 12 | sanlock | Fixed | 2.2-2 | DEBIAN-CVE-2012-5638 |
| Red Hat Enterprise Linux 6 | fence-sanlock | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | sanlock | Fixed Affected | 0:2.3-4.el6_3 | RHBA-2012:1507 |
| Red Hat Enterprise Linux 6 | sanlock-devel | Fixed Affected | 0:2.3-4.el6_3 | RHBA-2012:1507 |
| Red Hat Enterprise Linux 6 | sanlock-lib | Fixed Affected | 0:2.3-4.el6_3 | RHBA-2012:1507 |
| Red Hat Enterprise Linux 6 | sanlock-python | Fixed Affected | 0:2.3-4.el6_3 | RHBA-2012:1507 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2013-0691.html (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.