CVE-2025-21781 is a medium-severity vulnerability in the Linux kernel's batman-adv module that causes a kernel panic during interface removal. The issue arises because reference counting does not guarantee that the hard interface remains associated with the soft interface until certain work completes, leading to a crash during reboot. The flaw has been fixed by ensuring proper association to prevent the panic.