Typing passphrase pretty quickly using Yubikey fails to unlock a LUKS partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Plymouth |
Fix Released
|
Unknown
|
|||
cryptsetup (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
plymouth (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It looks like there are some behavioral changes between 22.02.122 and 23.360.11. I didn't have any issue until recently but after upgrading to 23.360.11 on Ubuntu, the same unlocking method of LUKS partition stopped working.
How to reproduce:
1. format Yubikey with a static password
```
$ ykman otp static --generate 2
```
(it will emit 38 characters and the ENTER event within a moment when a button is long pressed)
2. add the new key to LUKS
```
$ sudo cryptsetup luksAddKey /dev/nvme0n1p3
```
3. reboot and use the Yubikey to input the passphrase
Actual:
it fails to unlock
When typing the same passphrase by-hand it works. Furthermore, when not using Plymouth, both by-hand typing and Yubikey work.
WORKAROUND:
1. boot into the recovery mode
2. unlock the volume in the console
3. remove "splash" from /etc/default/grub and run `update-grub`
3. reboot
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: cryptsetup 2:2.6.1-6ubuntu1
ProcVersionSign
Uname: Linux 6.6.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon Jan 29 15:41:03 2024
InstallationDate: Installed on 2024-01-08 (21 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240104)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: cryptsetup
UpgradeStatus: No upgrade log present (probably fresh install)
cmdline: BOOT_IMAGE=
crypttab: dm_crypt-0 UUID=cfd8c295-
description: | updated |
description: | updated |
Changed in plymouth: | |
status: | Unknown → New |
Changed in plymouth: | |
status: | New → Fix Released |
/var/log/ apt/history. log for the record.