A vulnerability in the Linux kernel's btrfs filesystem could cause the deletion of the wrong subvolume when deleting by ID. This occurs due to a race condition where a concurrent rename changes the subvolume associated with a name between ID resolution and deletion. The issue was fixed by verifying the subvolume ID matches the requested ID under the parent directory lock, preventing unintended deletions.