I am using Ubuntu 22.04. The default kernel is 5.15.0-56. However, because I have issue with my laptop keyboard (bug id #216158, I should patch the kernel.
There are steps how I patch the kernel.
uname -r (to check current kernel version: 5.15.0-56)
apt source linux-image-unsigned-5.15.0-56
cd ./linux-5.15.0
patch -p1 < ../path/to/patchfile
make oldconfig
make -j 16
make modules_install
make install
The bug has been fixed, but I don't know why my kernel change to 5.15.64. Though I use 5.15.0 as source file and use old kernel config.
And when I tried to install VMWare Workstation. I prompted to the following window:

It caused by directory /usr/src/linux-headers-5.15.64 not found.
My question is:
- Why the kernel version changed from 5.15.0-56 to 5.15.64 even I use version 5.15.0 as source kernel file?
- How to generate directory /usr/src/linux-headers-5.15.64 ?
These are kernel installed on my machine.
$ dpkg --list | grep "linux-image" | grep "^ii"
ii linux-image-5.15.0-25-generic 5.15.0-25.25 amd64 Signed kernel image generic
ii linux-image-5.15.0-56-generic 5.15.0-56.62 amd64 Signed kernel image generic
ii linux-image-generic-hwe-22.04 5.15.0.56.54 amd64 Generic Linux kernel image
Solved The Problem
After @Terrance give me some explanation, I tried to rebuild the kernel using similar steps I mention earlier.
However the different is on the kernel's source file.
I use the following command.
apt source linux-source-5.15.0
However, There is no kernel header located on /usr/src, however I can run VMWare Workstation 17 properly.