A vulnerability in the Linux kernel tracing subsystem could cause a kernel crash (NULL pointer dereference) when switching tracers under certain conditions. This occurs if the newly selected tracer has no flags defined, leading to a NULL pointer dereference during printing of function graph events. The issue was observed during stress testing of ftrace and can be reproduced by switching tracers without resetting the snapshot buffer.