efibootmgr may create a duplicated boot entry, "breaking" UEFI boot.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
Critical
|
Unassigned | |||
efibootmgr (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | |||
Utopic |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre | |||
grub2 (Ubuntu) | ||||||
Utopic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
This bug causes any users with preexisting boot entries in UEFI in a specific pattern to get duplicated entries with a same number, which causes most UEFI BIOSes to reset to default values, thus making Ubuntu unbootable (requires intervention via a different bootable device).
The included patch changes the variable sizes for compared data to a more suitable type, since it otherwise caused undersired behavior when doing comparisons.
[Test Case]
Using an affected system:
1) Try to create a new bootmgr entry: 'efibootmgr -c'
Without the patch, the creation step will add a duplicate entry with the same BootNNNN number.
With the patch, the creation should succeed and create a new entry with a new BootNNNN number.
[Regression Potential]
Possible regressions may be inability to create new boot entries in the boot manager (though unlikely), or setting the wrong boot order, or other issues related to the addition of boot entries in UEFI.
---
Hey,
the current version of efibootmgr has a small ordering bug that causes, at least on x240, a duplicated boot entry to be added to UEFI, breaking the boot - UEFI resets everything to default values, and you have to boot from usb stick to fix uefi entries. There is an upstream patch that fixes it, and it would be great if we could add it.
Upstream bug report is https:/
Related branches
description: | updated |
tags: | added: utopic |
Changed in efibootmgr (Ubuntu): | |
importance: | Undecided → Critical |
Changed in hundredpapercuts: | |
status: | New → Won't Fix |
status: | Won't Fix → Confirmed |
importance: | Undecided → Critical |
Changed in efibootmgr (Ubuntu Utopic): | |
status: | Triaged → In Progress |
description: | updated |
Changed in hundredpapercuts: | |
status: | Confirmed → Fix Released |
status: | Fix Released → Fix Committed |
no longer affects: | grub2 (Ubuntu) |
Changed in efibootmgr (Ubuntu Utopic): | |
importance: | High → Critical |
Changed in hundredpapercuts: | |
status: | Fix Committed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.