2025-09-04 15:32:55
Linux
PUBLISHED
In the Linux kernel, the following vulnerability has been resolved: rcu/nocb: Fix possible invalid rdps->nocb_cb_kthread pointer access In the preparation stage of CPU online, if the corresponding the rdps->nocb_cb_kthread does not exist, will be created, there is a situation where the rdps rcuop kthreads creation fails, and then de-offload this CPUs rdp, does not assign this CPUs rdp->nocb_cb_kthread pointer, but this rdps->nocb_gp_rdp and rdps->rdp_gp->nocb_gp_kthread is still valid. This will cause the subsequent re-offload operation of this offline CPU, which will pass the conditional check and the kthread_unpark() will access invalid rdps->nocb_cb_kthread pointer. This commit therefore use rdps->nocb_gp_kthread instead of rdp_gps->nocb_gp_kthread for safety check.