In the Linux kernel, the following vulnerability has been resolved:
ipv6: sr: fix memleak in seg6hmacinit_algo
seg6hmacinit_algo returns without cleaning up the previous allocations if one fails, so it's going to leak all that memory and the crypto tfms.
Update seg6hmacexit to only free the memory when allocated, so we can reuse the code directly.