Skip to content

VeraCrypt 1.26.29 hangs with "--auto-mount=favorites" when mounting multiple favorite volumes on Fedora #1815

Description

@novaxar

I have two entries in the Favorites list that were added through the VeraCrypt GUI:

  1. Partition (password and PIM):
    /dev/nvme0n1pX -> /media/docs
  2. File container (password only):
    /media/docs/foo/bar/container -> /media/container

When I run veracrypt --auto-mount=favorites, VeraCrypt 1.26.29 mounts the first favorite volume successfully, but then hangs, consumes 100% of one CPU core, and never prompts for the credentials of the second favorite volume.

Both volumes can be mounted manually without any issues using the GUI. The problem only occurs when using veracrypt --auto-mount=favorites.

The same setup works correctly with VeraCrypt 1.26.24. The issue only appears after upgrading to version 1.26.29.

Expected behavior

Running the following command:

veracrypt --auto-mount=favorites

should automatically mount all volumes stored in Favorites.

Since my two favorite volumes use different passwords (and PIM), VeraCrypt should:

  1. Prompt for the password and PIM of the first volume.
  2. Mount the first volume.
  3. Prompt for the password of the second volume.
  4. Mount the second volume.

Observed behavior

When I run:

veracrypt --auto-mount=favorites
  1. VeraCrypt prompts for the password and PIM of the first volume.
  2. After entering the correct credentials, the first volume is mounted successfully.
  3. After that, VeraCrypt starts consuming 100% of one CPU core and approximately 1 GiB of RAM. The resource usage does not stop even after waiting for an extended period of time, and the second favorite volume is never mounted.

The only way to stop the process is to terminate it manually using kill. After killing the process, VeraCrypt displays an error message (see screenshot below).

My suspicion is that VeraCrypt may be repeatedly trying to unlock the second favorite volume using the password/PIM entered for the first volume instead of prompting for a new password. Another possibility is that VeraCrypt is hitting a race condition. But these are just my assumptions.

Steps to reproduce

  1. Add two encrypted volumes to the Favorites list using GUI.
  2. Run veracrypt --auto-mount=favorites
  3. Enter the correct password and PIM for the first favorite volume.
  4. The first volume is mounted successfully.
  5. VeraCrypt never prompts for the credentials of the second favorite volume.
    Instead, VeraCrypt starts consuming one CPU core at 100% and around 1 GiB of RAM indefinitely, while the second volume is never mounted.
  6. Terminate the process using kill.
  7. VeraCrypt displays an error message (see screenshot).

Screenshots

Resource consumption after mounting the first volume:
Image

The error message after terminating the VeraCrypt process with kill:
Image

Your Environment

VeraCrypt version: 1.26.29
GitHub release file: veracrypt-1.26.29-Fedora-44-x86_64.rpm

Operating system and version:

  1. Fedora Linux 44 (KDE Plasma Desktop Edition): stable release and the latest updates
  2. Kernel: 7.1.3-200.fc44.x86_64

System type: x86_64

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions