You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
key memory is not locked and the volume service can be core dumped #1958
Memory that holds the master key is locked (mlock) and excluded from core dumps (MADV_DONTDUMP or prctl(PR_SET_DUMPABLE, 0)). Key material never reaches swap or a core file.
Observed behavior
SecureBuffer (src/Platform/Buffer.cpp:111-133) only wipes memory on free. The FUSE service process that holds the master key shows "VmLck: 0 kB" and PR_GET_DUMPABLE returns 1. A kernel core file of this process contained the first master key half 3 times and the second half 4 times.
Steps to reproduce
Mount a file container: veracrypt -t --non-interactive -p PW --pim=0 -k '' test.hc /mnt/t
Find the FUSE service process (the veracrypt process with /dev/fuse open). grep VmLck /proc/<pid>/status prints "VmLck: 0 kB".
prlimit --pid <pid> --core=unlimited then kill -SEGV <pid>
Search the core file for the master key (decrypted from the volume header). Both key halves are found.
Screenshots
None
Your Environment
VeraCrypt version: 1.26.30 (console build from tag VeraCrypt_1.26.30) Operating system and version: Ubuntu 24.04.5 LTS, kernel 6.18 System type: 64-bit (x86_64)
Activity
Unix: lock key buffers in memory and exclude them from core dumps
Tests: add regression tests for issues veracrypt#1958 to veracrypt#1962
Unix: lock key buffers in memory and exclude them from core dumps
Tests: add a regression test for veracrypt#1958
Unix: lock key buffers in memory and exclude them from core dumps
Tests: add a regression test for veracrypt#1958
Unix: lock key buffers in memory and exclude them from core dumps
Tests: add a regression test for veracrypt#1958