Search notes:
include/config/kernel.release
include/config/kernel.release
stores the linux release (and commit id?), for example
6.5.0-rc7-00018-g89bf6209cad6
See also
kernel release
include/config/
Index