CVE-2012-5638 Misconfiguration in n/a
Local attackers can overwrite SANLock logs or bypass disk quotas due to world-writable log file permissions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2012-5638?
CVE-2012-5638 is a low-severity vulnerability in n/a, published on 20 Dec 2012. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-264
Which versions are affected by CVE-2012-5638?
It affects 1 product.
Linux distribution packages (5)
sanlock Red Hat:enterprise_linux:6::hypervisor | All versions | 0:2.3-4.el6_3 |
sanlock-debuginfo Red Hat:enterprise_linux:6::hypervisor | All versions | 0:2.3-4.el6_3 |
sanlock-devel Red Hat:enterprise_linux:6::hypervisor | All versions | 0:2.3-4.el6_3 |
sanlock-lib Red Hat:enterprise_linux:6::hypervisor | All versions | 0:2.3-4.el6_3 |
sanlock-python Red Hat:enterprise_linux:6::hypervisor | All versions | 0:2.3-4.el6_3 |
Products include Ovirt Sanlock.
How do I fix CVE-2012-5638?
Apply the vendor's patch.
Is CVE-2012-5638 being exploited?
There is no known exploitation of CVE-2012-5638 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2012-5638, GHSA-48rw-xq3g-hfw6, RHBA-2012:1507.