Years ago, it was my understanding that when installing Debian (or any Debian derivative such as Ubuntu) with FDE, swap was not encrypted despite using "full disk encryption", and that this presented a potential security risk due to sensitive information such as encryption keys potentially being stored outside of the LUKS container.
On my current Debian 13 install (for which I selected FDE during installation but did not do any other configuration regarding encryption), lsblk seems to show my swap space as being in the same LUKS container as root, but maybe I am interpreting it wrong.
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 976M 0 part /boot/efi
├─nvme0n1p2 259:2 0 977M 0 part /boot
└─nvme0n1p3 259:3 0 236.6G 0 part
└─nvme0n1p3_crypt 253:0 0 236.6G 0 crypt
├─debian--vg-root 253:1 0 230.8G 0 lvm /
└─debian--vg-swap_1 253:2 0 5.7G 0 lvm [SWAP]
I did some web searches and could not find anything definitive. ChatGPT told me that in older releases from years ago, installing with FDE did not encrypt swap by default, but in recent years, installing with FDE does encrypt swap by default, so the security risk no longer exists with modern releases. However, I don't know how reliable ChatGPT is, and the "sources" it gave me said nothing about this.
Can anyone confirm or deny what ChatGPT told me (preferably with sources), and/or provide any other information? Is there any risk of swap storing anything in plaintext, such that if my computer was stolen while powered off, an attacker would be able to retreive a passphrase or key?