{"id":"CVE-2025-68259","aliases":["CVE-2025-68259"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: SVM: Don't skip unrelated instruction if INT3/INTO is replaced","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SVM: Don't skip unrelated instruction if INT3/INTO is replaced\n\nWhen re-injecting a soft interrupt from an INT3, INT0, or (select) INTn\ninstruction, discard the exception and retry the instruction if the code\nstream is changed (e.g. by a different vCPU) between when the CPU\nexecutes the instruction and when KVM decodes the instruction to get the\nnext RIP.\n\nAs effectively predicted by commit 6ef88d6e36c2 (\"KVM: SVM: Re-inject\nINT3/INTO instead of retrying the instruction\"), failure to verify that\nthe correct INTn instruction was decoded can effectively clobber guest\nstate due to decoding the wrong instruction and thus specifying the\nwrong next RIP.\n\nThe bug most often manifests as \"Oops: int3\" panics on static branch\nchecks in Linux guests.  Enabling or disabling a static branch in Linux\nuses the kernel's \"text poke\" code patching mechanism.  To modify code\nwhile other CPUs may be executing that code, Linux (temporarily)\nreplaces the first byte of the original instruction with an int3 (opcode\n0xcc), then patches in the new code stream except for the first byte,\nand finally replaces the int3 with the first byte of the new code\nstream.  If a CPU hits the int3, i.e. executes the code while it's being\nmodified, then the guest kernel must look up the RIP to determine how to\nhandle the #BP, e.g. by emulating the new instruction.  If the RIP is\nincorrect, then this lookup fails and the guest kernel panics.\n\nThe bug reproduces almost instantly by hacking the guest kernel to\nrepeatedly check a static branch[1] while running a drgn script[2] on\nthe host to constantly swap out the memory containing the guest's TSS.\n\n[1]: https://gist.github.com/osandov/44d17c51c28c0ac998ea0334edf90b5a\n[2]: https://gist.github.com/osandov/10e45e45afa29b11e0c7209247afc00b","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SVM: Don't skip unrelated instruction if INT3/INTO is replaced\n\nWhen re-injecting a soft interrupt from an INT3, INT0, or (select) INTn\ninstruction, discard the exception and retry the instruction if the code\nstream is changed (e.g. by a different vCPU) between when the CPU\nexecutes the instruction and when KVM decodes the instruction to get the\nnext RIP.\n\nAs effectively predicted by commit 6ef88d6e36c2 (\"KVM: SVM: Re-inject\nINT3/INTO instead of retrying the instruction\"), failure to verify that\nthe correct INTn instruction was decoded can effectively clobber guest\nstate due to decoding the wrong instruction and thus specifying the\nwrong next RIP.\n\nThe bug most often manifests as \"Oops: int3\" panics on static branch\nchecks in Linux guests.  Enabling or disabling a static branch in Linux\nuses the kernel's \"text poke\" code patching mechanism.  To modify code\nwhile other CPUs may be executing that code, Linux (temporarily)\nreplaces the first byte of the original instruction with an int3 (opcode\n0xcc), then patches in the new code stream except for the first byte,\nand finally replaces the int3 with the first byte of the new code\nstream.  If a CPU hits the int3, i.e. executes the code while it's being\nmodified, then the guest kernel must look up the RIP to determine how to\nhandle the #BP, e.g. by emulating the new instruction.  If the RIP is\nincorrect, then this lookup fails and the guest kernel panics.\n\nThe bug reproduces almost instantly by hacking the guest kernel to\nrepeatedly check a static branch[1] while running a drgn script[2] on\nthe host to constantly swap out the memory containing the guest's TSS.\n\n[1]: https://gist.github.com/osandov/44d17c51c28c0ac998ea0334edf90b5a\n[2]: https://gist.github.com/osandov/10e45e45afa29b11e0c7209247afc00b","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nKVM: SVM: No omitir instrucción no relacionada si INT3/INTO es reemplazado\n\nAl reinyectar una interrupción suave de una instrucción INT3, INT0 o (selecta) INTn, descartar la excepción y reintentar la instrucción si el flujo de código es cambiado (p. ej., por una vCPU diferente) entre cuando la CPU ejecuta la instrucción y cuando KVM decodifica la instrucción para obtener el siguiente RIP.\n\nComo fue efectivamente predicho por el commit 6ef88d6e36c2 ('KVM: SVM: Reinyectar INT3/INTO en lugar de reintentar la instrucción'), la falla al verificar que la instrucción INTn correcta fue decodificada puede efectivamente corromper el estado del invitado debido a la decodificación de la instrucción incorrecta y por lo tanto especificando el RIP siguiente incorrecto.\n\nEl error se manifiesta con mayor frecuencia como pánicos de 'Oops: int3' en las comprobaciones de ramas estáticas en invitados Linux. Habilitar o deshabilitar una rama estática en Linux utiliza el mecanismo de parcheo de código 'text poke' del kernel. Para modificar código mientras otras CPUs pueden estar ejecutando ese código, Linux (temporalmente) reemplaza el primer byte de la instrucción original con un int3 (opcode 0xcc), luego parchea el nuevo flujo de código excepto el primer byte, y finalmente reemplaza el int3 con el primer byte del nuevo flujo de código. Si una CPU encuentra el int3, es decir, ejecuta el código mientras está siendo modificado, entonces el kernel invitado debe buscar el RIP para determinar cómo manejar el #BP, p. ej., emulando la nueva instrucción. Si el RIP es incorrecto, entonces esta búsqueda falla y el kernel invitado entra en pánico.\n\nEl error se reproduce casi instantáneamente al hackear el kernel invitado para verificar repetidamente una rama estática[1] mientras se ejecuta un script drgn[2] en el host para intercambiar constantemente la memoria que contiene el TSS del invitado.\n\n[1]: https://gist.github.com/osandov/44d17c51c28c0ac998ea0334edf90b5a\n[2]: https://gist.github.com/osandov/10e45e45afa29b11e0c7209247afc00b","source":"nvd"}],"published":"2025-12-16T14:45:01.753Z","modified":"2026-10-14T13:10:00.187Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6ef88d6e36c2b4b3886ec9967cafabe4424d27d5","fixed":"2e84a018c2895c05abe213eb10db128aa45f6ec6","status":"affected"},{"type":"git","introduced":"6ef88d6e36c2b4b3886ec9967cafabe4424d27d5","fixed":"152289a51107ef45bbfe9b4aeeaa584a503042b5","status":"affected"},{"type":"git","introduced":"6ef88d6e36c2b4b3886ec9967cafabe4424d27d5","fixed":"87cc1622c88a4888959d64fa1fc9ba1e264aa3d4","status":"affected"},{"type":"git","introduced":"6ef88d6e36c2b4b3886ec9967cafabe4424d27d5","fixed":"54bcccc2c7805a00af1d7d2faffd6f424c0133aa","status":"affected"},{"type":"git","introduced":"6ef88d6e36c2b4b3886ec9967cafabe4424d27d5","fixed":"53903ac9ca1abffa27327e85075ec496fa55ccf3","status":"affected"},{"type":"git","introduced":"6ef88d6e36c2b4b3886ec9967cafabe4424d27d5","fixed":"4da3768e1820cf15cced390242d8789aed34f54d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.160","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.62","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.12","lastAffected":"6.17.*","status":"unaffected"},{"type":"semver","introduced":"6.18.1","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2e84a018c2895c05abe213eb10db128aa45f6ec6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/152289a51107ef45bbfe9b4aeeaa584a503042b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87cc1622c88a4888959d64fa1fc9ba1e264aa3d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/54bcccc2c7805a00af1d7d2faffd6f424c0133aa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/53903ac9ca1abffa27327e85075ec496fa55ccf3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4da3768e1820cf15cced390242d8789aed34f54d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68259","url":"https://www.cve.org/CVERecord?id=CVE-2025-68259","licence":"CVE Terms of Use","modified":"2026-05-11T21:49:54.834Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68259","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68259","licence":"Public domain","modified":"2026-10-14T13:10:00.187Z"}],"updatedAt":"2026-11-25T22:59:09.516Z","epss":{"score":0.00206,"percentile":0.11349,"date":"2026-12-01T12:00:22.000Z"}}