CVE-2012-5638 json
The setup_logging function in log.h in SANLock uses world-writable permissions for /var/log/sanlock.log, which allows local users to overwr…
published 2012-12-20 13 y ago modified 2026-06-16 4 mo ago also EUVD-2012-5522
- cvss
- 3.6
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 27%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- sanlock Debian 14, Debian 13, Debian 12 2.2-2
debian advisories DEBIAN-CVE-2012-5638
- sos storage 2.0 2.2-17.2.el6rhs
- rhsc storage 2.0 2.0.techpreview1-4.el6rhs
- vdsm storage 2.0 4.9.6-20.el6rhs
- augeas storage 2.0 0.9.0-1.el6
- libvirt storage 2.0 0.9.10-21.el6_3.8
- sanlock storage 2.0, RHEL 6 2.3-4.el6_3
- vdsm-cli storage 2.0 4.9.6-20.el6rhs
- vdsm-reg storage 2.0 4.9.6-20.el6rhs
red hat advisories RHSA-2013:0691RHBA-2012:1507
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2012-5638 updated cvss 2.1
sanlock world writable /var/log/sanlock.log
-
Red Hat Enterprise Linux 6 sanlock, sanlock-lib, fence-sanlock, sanlock-pythonaffected: no fix available
-
Red Hat Storage 2.0 Console vdsm 4.9.6-20.el6rhs, rhsc 2.0.techpreview1-4.el6rhs, vdsm-bootstrap 4.9.6-20.el6rhs, rhsc-setup 2.0.techpreview1-4.el6rhs, rhsc-config 2.0.techpreview1-4.el6rhs, rhsc-backend 2.0.techpreview1-4.el6rhs, +8 more Red Hat Storage Native Client for Red Hat Enterprise Linux 5 glusterfs 3.3.0.7rhs-1.el5, glusterfs-fuse 3.3.0.7rhs-1.el5, glusterfs-rdma 3.3.0.7rhs-1.el5 Red Hat Storage Native Client for Red Hat Enterprise Linux 6 glusterfs 3.3.0.7rhs-1.el6, glusterfs-fuse 3.3.0.7rhs-1.el6, glusterfs-rdma 3.3.0.7rhs-1.el6 Red Hat Storage Server 2.0 augeas 0.9.0-1.el6, sanlock 2.3-4.el6_3, sos 2.2-17.2.el6rhs, vdsm 4.9.6-20.el6rhs, augeas-libs 0.9.0-1.el6, sanlock-lib 2.3-4.el6_3, +29 morefixed: vendor fix RHSA-2013:0691
-
Red Hat RHEV Agents (vdsm) sanlock 2.3-4.el6_3, sanlock-lib 2.3-4.el6_3, sanlock-python 2.3-4.el6_3fixed: vendor fix RHBA-2012:1507
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.34% chance of exploitation in the next 30 days, higher than 27% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 3.6 | AV:L/AC:L/Au:N/C:N/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
References
Sources
- CVE List CVE-2012-5638
- NVD CVE-2012-5638
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.