In the Linux kernel, the following vulnerability has been resolved: ethtool: tsinfo: don't pass ERR_PTR to genlmsg_cancel on prepare failure The goto err label leads to: genlmsg_cancel(skb, ehdr); return ret; If ethnl_tsinfo_prepare_dump() failed, it has not started a genlmsg. There's nothing to cancel, and passing an error pointer to genlmsg_cancel() would cause a crash.
https://git.kernel.org/stable/c/d0d2c5ccd1de28368cebeef74d9c530a60eff9a5
https://git.kernel.org/stable/c/c3fc9976f686f9a95baf87db9d387f218fd65394
https://git.kernel.org/stable/c/2008f9bb1ede9b688624a241228b8e54fc74f0f6