I can also confirm running into this issue every time unattended- upgrades runs and see this erroring out in the logs. I would also like to point out that this problem has been resolved upstream in needrestart. Debian has cherry-picked the patches for Debian Bookworm in their needtorestart package linked below.
** Patch added: "Debian needtorestart package with upstream patch" https://packages.debian.org/source/bookworm/needrestart -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2026357 Title: Use of uninitialized value $ucode_vars{"AVAIL"} To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/2026357/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs