CVE-2012-5638: Low severity ovirt sanlock vulnerability

Published Dec 13, 2012
·
Updated

The sanlock server creates the /var/log/sanlock.log world writable allowing any one on the system to wipe the contents of the log file or to store data within the log file (bypassing any quotas applied to their account). The affected code is:

src/log.h

int setuplogging(void) { int fd, rv; snprintf(logfilepath, PATHMAX, "%s/%s", SANLKLOGDIR, SANLKLOGFILENAME); logfilefp = fopen(logfilepath, "a+");

Other sources

The setuplogging 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.

MITRE

Affected Software

1 affected component
Ovirt Sanlock

Event History

Dec 13, 2012
Data Sourced
via Red Hat·08:08 PM
DescriptionSeverityAffected Software
Dec 20, 2012
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-5638?

CVE-2012-5638 is considered a medium severity vulnerability due to its potential for misuse by local users.

2

How do I fix CVE-2012-5638?

To fix CVE-2012-5638, ensure that the log file at /var/log/sanlock.log is set to a more restrictive permission, such as 644.

3

Who is affected by CVE-2012-5638?

CVE-2012-5638 affects systems running the oVirt Sanlock service that are using the vulnerable logging configuration.

4

What are the risks of CVE-2012-5638?

The risks of CVE-2012-5638 include the ability for unauthorized users to modify or delete log contents, which can lead to loss of important logging information.

5

Is a patch available for CVE-2012-5638?

Yes, patches are available in the vendor's security updates for oVirt Sanlock to address CVE-2012-5638.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203