dm-verity root hash is not trusted
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- cpp
- Domain
- operating-systems, security
Research direction
Start with the oem veritysetup and oem verityappend entry points and compare their behavior with the referenced AOSP dm-verity signing workflow. Done means the roothash is signed during provisioning, verified at boot with the kernel builtin key, and the key-management workflow is documented.
Written by the indexing model from the issue text.
Description
oem veritysetup / oem verityappend generate and store a dm-verity root hash but nothing signs it. Integrity is checked but authenticity isn't : swap in a valid hash tree over a tampered rootfs and the kernel happily mounts it!
=> Breaks the chain of trust for any deployment that cares about authenticity, not just integrity.
suggested fix
- Sign the roothash during provisioning
- Verify it on boot (kernel builtin key)
- Document the key management workflow
reference: AOSP dm-verity signing
- Dominant language
- C++
- Stars
- 8
- Forks
- 2
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from raspberrypi/rpi-fastbootd
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
raspberrypi/rpi-fastbootd#15 · 1 comment ·
All issues in raspberrypi/rpi-fastbootd
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·