In the Linux kernel, the following vulnerability has been resolved:
cpufreq: Init completion before kobjectinitand_add()
In cpufreqpolicyalloc(), it will call uninitialed completion in cpufreqsysfsrelease() when kobjectinitand_add() fails. And that will cause a crash such as the following page fault in complete:
BUG: unable to handle page fault for address: fffffffffffffff8 [..] RIP: 0010:complete+0x98/0x1f0 [..] Call Trace: kobjectput+0x1be/0x4c0 cpufreqonline.cold+0xee/0x1fd cpufreqadddev+0x183/0x1e0 subsysinterfaceregister+0x3f5/0x4e0 cpufreqregisterdriver+0x3b7/0x670 acpicpufreqinit+0x56c/0x1000 [acpicpufreq] dooneinitcall+0x13d/0x780 doinitmodule+0x1c3/0x630 loadmodule+0x6e67/0x73b0 _dosysfinitmodule+0x181/0x240 dosyscall64+0x35/0x80 entrySYSCALL64afterhwframe+0x63/0xcd