arm64 package has hardcoded x64 references
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
canonical-signing-jobs |
Fix Released
|
High
|
Andy Whitcroft | ||
Task00 |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Task01 |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Task02 |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Task03 |
Fix Released
|
Medium
|
Andy Whitcroft | ||
shim-signed (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
I couldn't figure out why the alternative wasn't being updated to the new shim after I installed a kernel installed w/ a 2022 key. Turns out its because we hardcode shim*x64* in the kernel hook:
ubuntu@ubuntu:~$ grep x64 /etc/kernel/
if update-alternatives --query shimx64.efi.signed | grep "Best: /usr/lib/
There also seems to be a number of residual x64 references in the postinst:
ubuntu@ubuntu:~$ grep x64 /var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
[Test plan]
Install a kernel signed with 2022 key on arm64, make sure that shimaa64.efi.signed alternative points to latest
[Where problems could occur]
Added/changed code could potentially break stuff on amd64.
Related branches
- Julian Andres Klode: Approve
-
Diff: 130 lines (+53/-15)4 files modifieddebian/changelog (+9/-0)
debian/kernel-postinst.d/zz-shim (+9/-4)
debian/shim-signed.postinst (+12/-8)
is-not-revoked (+23/-3)
CVE References
description: | updated |
Changed in canonical-signing-jobs: | |
status: | Confirmed → In Progress |
importance: | Undecided → High |
assignee: | nobody → Andy Whitcroft (apw) |
no longer affects: | canonical-signing-jobs/task00 |
Changed in canonical-signing-jobs: | |
status: | In Progress → Fix Committed |
Changed in canonical-signing-jobs: | |
status: | Fix Committed → Fix Released |
Changed in shim-signed (Ubuntu Focal): | |
status: | Fix Released → Fix Committed |
Oh sorry. Thanks for checking. I noticed some of them but apparently not all.