Recover Flatpak credit cards lost in Firefox 149 by trying the old NSS key during the Rust storage migration
Categories
(Toolkit :: Form Autofill, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr153 | --- | wontfix |
| firefox160 | --- | wontfix |
| firefox161 | --- | wontfix |
| firefox162 | --- | wontfix |
| firefox163 | --- | fix-optional |
People
(Reporter: dimi, Assigned: dimi)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
What happened
Firefox 149 moved the Flatpak to the Freedesktop 25.08 runtime (bug 2010742). Unlike 24.08, the 25.08 runtime includes libsecret, so on Flatpak OSKeyStore switched from the NSS backend (key stored in key4.db) to the LibSecret backend. It found no key in the keyring and generated a new one, so credit cards saved before 149 can no longer be decrypted.
Telemetry shows about 95% of Flatpak users whose cards worked on 148 lost them after updating to 149. Other Linux packages are not affected.
Possible fix
The old key should still be in the profile's key4.db, since nothing deletes it. During the credit card migration to the Rust store, when decrypting a card with OSKeyStore fails, we could retry with the old NSS key before giving up on the card.
| Assignee | ||
Comment 1•6 days ago
|
||
On Linux the OS key store uses libsecret when it can load it and the NSS key
database otherwise, deciding at each launch. Flatpak builds gained libsecret in
149, so cards encrypted under the NSS key no longer decrypt, though that key is
still in key4.db. The migration into the Rust store now retries such a card
with nsIOSKeyStore.asyncDecryptBytesWithNSSKeyStore, which only reads.
Updated•6 days ago
|
Comment 2•6 days ago
|
||
Set release status flags based on info from the regressing bug 2010742
Updated•6 days ago
|
Comment 3•5 days ago
|
||
Set release status flags based on info from the regressing bug 2010742
Updated•5 days ago
|
Updated•1 day ago
|
Description
•