{"id":"UBUNTU-CVE-2012-5638","details":"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.","modified":"2025-07-16T07:17:03.416428Z","published":"2012-12-20T12:02:00Z","withdrawn":"2025-07-18T16:42:48Z","upstream":["CVE-2012-5638"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2012-5638"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=887010"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2012-5638"}],"affected":[{"package":{"name":"sanlock","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/sanlock@2.2-2?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2-2"}]}],"ecosystem_specific":{"binaries":[{"binary_name":"libsanlock-client1","binary_version":"2.2-2"},{"binary_name":"libsanlock-dev","binary_version":"2.2-2"},{"binary_name":"sanlock","binary_version":"2.2-2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-5638.json"}},{"package":{"name":"sanlock","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sanlock@2.2-2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2-2"}]}],"ecosystem_specific":{"binaries":[{"binary_name":"libsanlock-client1","binary_version":"2.2-2"},{"binary_name":"libsanlock-client1-dbgsym","binary_version":"2.2-2"},{"binary_name":"libsanlock-dev","binary_version":"2.2-2"},{"binary_name":"sanlock","binary_version":"2.2-2"},{"binary_name":"sanlock-dbgsym","binary_version":"2.2-2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-5638.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"medium"}]}