Advisory Published
Updated

REDHAT-BUG-730636

First published: Mon Aug 15 2011(Updated: )

opencryptoki, when compiled with -DSPINXPL (as it is in Red Hat Enterprise Linux and Fedora), creates certain dot files in the /tmp directory, such as .pkapi_xpk and .pkcs11spinloc. These are not temporary files and are rather used for locking purposes. They are created in a way that allows symlink attacks. As files are opened RDWR, and not written to, they don't seem to allow file corruption as typical symlink attacks do. It is still possible to create new files at arbitrary locations (e.g. /etc/nologin) or make arbitrary file world writable (e.g. /etc/shadow) with the privileges of the user running pkcsslotd or an application using opencrpytoki library. Attacker does not need to be a member of the pkcs11 group, though symlinks would usually need to be created before the first use of the opencryptoki on the system.

Affected SoftwareAffected VersionHow to fix
Opencryptoki
Opencryptoki

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-730636?

    The severity of REDHAT-BUG-730636 is classified as moderate due to the potential for file-related vulnerabilities in opencryptoki.

  • How do I fix REDHAT-BUG-730636?

    To fix REDHAT-BUG-730636, ensure that opencryptoki is updated to the latest version where this issue is addressed.

  • What systems are affected by REDHAT-BUG-730636?

    REDHAT-BUG-730636 affects Red Hat Enterprise Linux and Fedora systems running opencryptoki compiled with -DSPINXPL.

  • What kind of files does REDHAT-BUG-730636 create in the /tmp directory?

    REDHAT-BUG-730636 creates locking dot files like .pkapi_xpk and .pkcs11spinloc in the /tmp directory.

  • Is the creation of dot files in /tmp a security risk in REDHAT-BUG-730636?

    Yes, the creation of these dot files in /tmp can pose a security risk, particularly if exploited through symlink attacks.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203