this post was submitted on 19 Oct 2023
52 points (93.3% liked)

Linux

47537 readers
1811 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi everybody, bit of a warning here: The recovery key generated during the installation of Ubuntu 23.10 (if you select tpm-backed fde) cannot be used to unlock the disk outside of boot, as in any 'cryptsetup' command and so on will not accept the recovery key. unlocking when accessed from different system does not work etc.

You can use it to unlock the disk while booting if your tpm somehow fails, but ONLY in that specific situation.

I kind of purposefully broke my tpm keys to see if it could be restored with 23.10 and ended up having to reinstal, as I ended up having to enter the recovery key at boot every time and no way of adding additional unlock options to the volume, as cryptsetup would not accept the recovery key as passphrase.

This bug could be very bad for new users.

See this bug report: https://bugs.launchpad.net/ubuntu-desktop-installer/+bug/2039741

all 14 comments
sorted by: hot top controversial new old
[–] mvirts@lemmy.world 15 points 11 months ago (1 children)

Yet another reason why I wouldn't put anything important on a tpm encrypted volume 😹 I just don't trust it

[–] skullgiver@popplesburger.hilciferous.nl 10 points 11 months ago* (last edited 10 months ago) (2 children)

[This comment has been deleted by an automated system]

[–] ichbinjasokreativ@lemmy.world 3 points 11 months ago (1 children)

That's true, but the issue is that cryptsetup does not accept the recovery key as a passphrase for the disk. Once the tpm gets reset, the user has to always enter the recovery key and cannot implement a new key to luks and the tpm.

[–] kautau@lemmy.world 1 points 11 months ago* (last edited 11 months ago)

Yeah I’m hybrid Windows/Linux user, but many of my drives are Bitlocker encrypted. I need to install a bios update. To do so, it requires me to decrypt every bitlocker drive and not just the OS drive. Because the TPM keystore is based on the OS key store for each bitlocker drive. It’s frustrating, but it makes sense, so I’m all for additional security

[–] erik1984@lemmy.world 1 points 11 months ago (1 children)

Is it still possible to add an extra key (in another slot) to unlock it with cryptsetup? Adding this extra key might beat the purpose of using the TPM but if you choose a long random key and store it in a password manager that should still be pretty safe right?

[–] ichbinjasokreativ@lemmy.world 2 points 11 months ago

it's not, because to to so you need to enter a valid passphrase to cryptsetup, which the recovery key is NOT

[–] stealthnerd@lemmy.world 1 points 11 months ago (1 children)

Okay so I just read up on this. It's it true that TPM backed FDE only allows snaps?!?

Debs are completely unsupported?

[–] ichbinjasokreativ@lemmy.world 1 points 11 months ago

The ubuntu implementation is based on snap, but if you want to purge snapd (just install another distro at that point though), you can implement encryption as usual and add the tpm later on. Snap is only neccessary if you enable tpm-backed fde from setup.