Bug 512585

Summary: KDE Wallet data corruption
Product: [Applications] kwalletmanager Reporter: KOPRajs <zdenek.koprivik>
Component: generalAssignee: Valentin Rusu <valir>
Status: REPORTED ---    
Severity: major CC: dennis.lissov, h18t5fbr4
Priority: NOR    
Version First Reported In: 25.08.3   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Empty entries
Error when saving

Description KOPRajs 2025-11-25 07:48:25 UTC
SUMMARY
After a reboot of my system a popup asking for a WiFi password was shown. The password was previously saved in the wallet and I never needed to enter it again until now. When I opened the KWalletManager, I've found out that all my passwords are empty. The entries are still there, but when I click show data, they are all empty. I've tried to manually save the password by entering it to the manager a click save, but I only get error (code -1). The entire wallet seems to be corrupted somehow.

I was rebooting the system after updating it from Plasma 6.5.0 to 6.5.2 in KDE neon User Edition, but I've seen similar report on Manjaro forums regarding older version of Plasma, so the version bump is probably not related. Here is the report: https://forum.manjaro.org/t/kwallet-loses-all-passwords-and-does-not-accept-any-new-ones/179976

STEPS TO REPRODUCE
Can't reproduce it.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: KDE neon User Edition
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19
Qt Version: 6.9.3

ADDITIONAL INFORMATION
I never changed any setting regarding the wallet, it is the default setup from KDE neon. I've only had 4 passwords for Network Manager and 2 passwords for KRDC stored. They were all stored a long time ago, so no writes to the wallet have been made during the last boot.

I'm sure that I was connecting to a RDP server via KRDC just before the reboot and my password for the KRDC was read correctly from the wallet. The password for my WiFi after the reboot was not, so it must have got corrupted during the reboot.

The kdewallet.kwl file is present and it is not empty (1240 bytes), but its modification time and even birth time show, that it was re-created just in the time of the popup for the WiFi password.
Comment 1 KOPRajs 2025-11-25 07:57:56 UTC
Created attachment 187148 [details]
Empty entries
Comment 2 KOPRajs 2025-11-25 07:58:23 UTC
Created attachment 187149 [details]
Error when saving
Comment 3 KOPRajs 2025-11-25 08:05:25 UTC
Since none of the saved passwords were very sensitive, I'm willing to share the corrupted kwl file with the devs, if it helps.
Comment 4 KOPRajs 2025-11-25 15:10:25 UTC
It turned out that the file itself was not corrupted. After killing kwalletd6 and re-opening the wallet I can now see the passwords again.
Comment 5 Simon 2025-12-18 14:18:21 UTC
(In reply to KOPRajs from comment #4)
> It turned out that the file itself was not corrupted. After killing
> kwalletd6 and re-opening the wallet I can now see the passwords again.

Thank you! I have the same issue, but this workaround seems to help. All apps are able to access the keyring again. Quite a scary moment, when all the passwords are empty..
Comment 6 Simon 2025-12-18 14:19:47 UTC
Operating System: Arch Linux 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel Version: 6.17.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 6850U with Radeon Graphics
Memory: 32 GiB of RAM (30.1 GiB usable)
Graphics Processor: AMD Radeon Graphics