{"api_version":"1","generated_at":"2026-09-17T20:26:33+00:00","cve":"CVE-2026-93164","urls":{"html":"https://cve.report/CVE-2026-93164","api":"https://cve.report/api/cve/CVE-2026-93164.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-93164","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-93164"},"summary":{"title":"uprobes/x86: Move optimized uprobe from nop5 to nop10","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nuprobes/x86: Move optimized uprobe from nop5 to nop10\n\nAndrii reported an issue with optimized uprobes [1] that can clobber\nredzone area with call instruction storing return address on stack\nwhere user code may keep temporary data without adjusting rsp.\n\nFixing this by moving the optimized uprobes on top of 10-bytes nop\ninstruction, so we can squeeze another instruction to escape the\nredzone area before doing the call, like:\n\n  lea -0x80(%rsp), %rsp\n  call tramp\n\nNote the lea instruction is used to adjust the rsp register without\nchanging the flags.\n\nWe use nop10 and following transformation to optimized instructions\nabove and back as suggested by Peterz [2].\n\nOptimize path (int3_update_optimize):\n\n  1) Initial state after set_swbp() installed the uprobe:\n      cc 2e 0f 1f 84 00 00 00 00 00\n\n     From offset 0 this is INT3 followed by the tail of the original\n     10-byte NOP.\n\n     After a previous unoptimization bytes 5..9 may still contain the\n     old call instruction, which remains valid for threads already there.\n\n  2) Rewrite the LEA tail and call displacement:\n      cc [8d 64 24 80 e8 d0 d1 d2 d3]\n\n     From offset 0 this traps on the uprobe INT3.  Bytes 1..9 are not\n     executable entry points while byte 0 is trapped.\n\n  3) Publish the first LEA byte:\n      [48] 8d 64 24 80 e8 d0 d1 d2 d3\n\n     From offset 0 this is:\n        lea -0x80(%rsp), %rsp\n        call <uprobe-trampoline>\n\nUnoptimize path (int3_update_unoptimize):\n\n  1) Initial optimized state:\n      48 8d 64 24 80 e8 d0 d1 d2 d3\n     Same as 3) above.\n\n  2) Trap new entries before restoring the NOP bytes:\n      [cc] 8d 64 24 80 e8 d0 d1 d2 d3\n\n     From offset 0 this traps. A thread that had already executed the\n     LEA can still reach the intact CALL at offset 5.\n\n  3) Restore bytes 1..4 of the original NOP while keeping byte 0 trapped\n     and byte 5 as CALL.\n      cc [2e 0f 1f 84] e8 d0 d1 d2 d3\n\n     From offset 0 this still traps. Offset 5 is still the CALL for any\n     thread that was already past the first LEA byte.\n\n  4) Publish the first byte of the original NOP:\n      [66] 2e 0f 1f 84 e8 d0 d1 d2 d3\n\n     From offset 0 this is the restored 10-byte NOP; the CALL opcode and\n     displacement are now only NOP operands.  Offset 5 still decodes as\n     CALL for a thread that was already there.\n\n     Tthere is only a single target uprobe-trampoline for the given nop10\n     instruction address, so the CALL instruction will not be changed across\n     unoptimization/optimization cycles.\n     Therefore, any task that is preempted at the CALL instruction is guaranteed\n     to observe that CALL and not anything else.\n\nNote as explained in [2] we need to use following nop10:\n       PF1   PF2   ESC   NOPL  MOD   SIB   DISP32\nNOP10: 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 -- cs nopw 0x00000000(%rax,%rax,1)\n\nwhich means we need to allow 0x2e prefix which maps to INAT_PFX_CS\nattribute in is_prefix_bad function.\n\nAlso changing the uprobe syscall error when called out of uprobe\ntrampoline to -EPROTO, so we are able to detect the fixed kernel.\n\nThe optimized uprobe performance stays the same:\n\n        uprobe-nop     :    3.129 ± 0.013M/s\n        uprobe-push    :    3.045 ± 0.006M/s\n        uprobe-ret     :    1.095 ± 0.004M/s\n  -->   uprobe-nop10   :    7.170 ± 0.020M/s\n        uretprobe-nop  :    2.143 ± 0.021M/s\n        uretprobe-push :    2.090 ± 0.000M/s\n        uretprobe-ret  :    0.942 ± 0.000M/s\n  -->   uretprobe-nop10:    3.381 ± 0.003M/s\n        usdt-nop       :    3.245 ± 0.004M/s\n  -->   usdt-nop10     :    7.256 ± 0.023M/s\n\n[1] https://lore.kernel.org/bpf/20260509003146.976844-1-andrii@kernel.org/\n[2] https://lore.kernel.org/bpf/20260518104306.GU3102624@noisy.programming.kicks-ass.net/#t","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-17 17:18:11","updated_at":"2026-09-17 17:18:11"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/554ba38456dad8053a1a80afe6ae6da9eff745cc","name":"https://git.kernel.org/stable/c/554ba38456dad8053a1a80afe6ae6da9eff745cc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1b3fecd09910040668b752f3377d7218ca5c59ac","name":"https://git.kernel.org/stable/c/1b3fecd09910040668b752f3377d7218ca5c59ac","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-93164","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93164","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ba2bfc97b4629b10bd8d02b36e04f3932a04cac4 1b3fecd09910040668b752f3377d7218ca5c59ac git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ba2bfc97b4629b10bd8d02b36e04f3932a04cac4 554ba38456dad8053a1a80afe6ae6da9eff745cc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.6 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["arch/x86/kernel/uprobes.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"1b3fecd09910040668b752f3377d7218ca5c59ac","status":"affected","version":"ba2bfc97b4629b10bd8d02b36e04f3932a04cac4","versionType":"git"},{"lessThan":"554ba38456dad8053a1a80afe6ae6da9eff745cc","status":"affected","version":"ba2bfc97b4629b10bd8d02b36e04f3932a04cac4","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["arch/x86/kernel/uprobes.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.18"},{"lessThan":"6.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.6","versionStartIncluding":"6.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"6.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nuprobes/x86: Move optimized uprobe from nop5 to nop10\n\nAndrii reported an issue with optimized uprobes [1] that can clobber\nredzone area with call instruction storing return address on stack\nwhere user code may keep temporary data without adjusting rsp.\n\nFixing this by moving the optimized uprobes on top of 10-bytes nop\ninstruction, so we can squeeze another instruction to escape the\nredzone area before doing the call, like:\n\n  lea -0x80(%rsp), %rsp\n  call tramp\n\nNote the lea instruction is used to adjust the rsp register without\nchanging the flags.\n\nWe use nop10 and following transformation to optimized instructions\nabove and back as suggested by Peterz [2].\n\nOptimize path (int3_update_optimize):\n\n  1) Initial state after set_swbp() installed the uprobe:\n      cc 2e 0f 1f 84 00 00 00 00 00\n\n     From offset 0 this is INT3 followed by the tail of the original\n     10-byte NOP.\n\n     After a previous unoptimization bytes 5..9 may still contain the\n     old call instruction, which remains valid for threads already there.\n\n  2) Rewrite the LEA tail and call displacement:\n      cc [8d 64 24 80 e8 d0 d1 d2 d3]\n\n     From offset 0 this traps on the uprobe INT3.  Bytes 1..9 are not\n     executable entry points while byte 0 is trapped.\n\n  3) Publish the first LEA byte:\n      [48] 8d 64 24 80 e8 d0 d1 d2 d3\n\n     From offset 0 this is:\n        lea -0x80(%rsp), %rsp\n        call <uprobe-trampoline>\n\nUnoptimize path (int3_update_unoptimize):\n\n  1) Initial optimized state:\n      48 8d 64 24 80 e8 d0 d1 d2 d3\n     Same as 3) above.\n\n  2) Trap new entries before restoring the NOP bytes:\n      [cc] 8d 64 24 80 e8 d0 d1 d2 d3\n\n     From offset 0 this traps. A thread that had already executed the\n     LEA can still reach the intact CALL at offset 5.\n\n  3) Restore bytes 1..4 of the original NOP while keeping byte 0 trapped\n     and byte 5 as CALL.\n      cc [2e 0f 1f 84] e8 d0 d1 d2 d3\n\n     From offset 0 this still traps. Offset 5 is still the CALL for any\n     thread that was already past the first LEA byte.\n\n  4) Publish the first byte of the original NOP:\n      [66] 2e 0f 1f 84 e8 d0 d1 d2 d3\n\n     From offset 0 this is the restored 10-byte NOP; the CALL opcode and\n     displacement are now only NOP operands.  Offset 5 still decodes as\n     CALL for a thread that was already there.\n\n     Tthere is only a single target uprobe-trampoline for the given nop10\n     instruction address, so the CALL instruction will not be changed across\n     unoptimization/optimization cycles.\n     Therefore, any task that is preempted at the CALL instruction is guaranteed\n     to observe that CALL and not anything else.\n\nNote as explained in [2] we need to use following nop10:\n       PF1   PF2   ESC   NOPL  MOD   SIB   DISP32\nNOP10: 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 -- cs nopw 0x00000000(%rax,%rax,1)\n\nwhich means we need to allow 0x2e prefix which maps to INAT_PFX_CS\nattribute in is_prefix_bad function.\n\nAlso changing the uprobe syscall error when called out of uprobe\ntrampoline to -EPROTO, so we are able to detect the fixed kernel.\n\nThe optimized uprobe performance stays the same:\n\n        uprobe-nop     :    3.129 ± 0.013M/s\n        uprobe-push    :    3.045 ± 0.006M/s\n        uprobe-ret     :    1.095 ± 0.004M/s\n  -->   uprobe-nop10   :    7.170 ± 0.020M/s\n        uretprobe-nop  :    2.143 ± 0.021M/s\n        uretprobe-push :    2.090 ± 0.000M/s\n        uretprobe-ret  :    0.942 ± 0.000M/s\n  -->   uretprobe-nop10:    3.381 ± 0.003M/s\n        usdt-nop       :    3.245 ± 0.004M/s\n  -->   usdt-nop10     :    7.256 ± 0.023M/s\n\n[1] https://lore.kernel.org/bpf/20260509003146.976844-1-andrii@kernel.org/\n[2] https://lore.kernel.org/bpf/20260518104306.GU3102624@noisy.programming.kicks-ass.net/#t"}],"providerMetadata":{"dateUpdated":"2026-09-17T16:11:57.248Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/1b3fecd09910040668b752f3377d7218ca5c59ac"},{"url":"https://git.kernel.org/stable/c/554ba38456dad8053a1a80afe6ae6da9eff745cc"}],"title":"uprobes/x86: Move optimized uprobe from nop5 to nop10","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-93164","datePublished":"2026-09-17T16:11:57.248Z","dateReserved":"2026-09-17T16:02:15.090Z","dateUpdated":"2026-09-17T16:11:57.248Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-17 17:18:11","lastModifiedDate":"2026-09-17 17:18:11","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"93164","Ordinal":"1","Title":"uprobes/x86: Move optimized uprobe from nop5 to nop10","CVE":"CVE-2026-93164","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"93164","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nuprobes/x86: Move optimized uprobe from nop5 to nop10\n\nAndrii reported an issue with optimized uprobes [1] that can clobber\nredzone area with call instruction storing return address on stack\nwhere user code may keep temporary data without adjusting rsp.\n\nFixing this by moving the optimized uprobes on top of 10-bytes nop\ninstruction, so we can squeeze another instruction to escape the\nredzone area before doing the call, like:\n\n  lea -0x80(%rsp), %rsp\n  call tramp\n\nNote the lea instruction is used to adjust the rsp register without\nchanging the flags.\n\nWe use nop10 and following transformation to optimized instructions\nabove and back as suggested by Peterz [2].\n\nOptimize path (int3_update_optimize):\n\n  1) Initial state after set_swbp() installed the uprobe:\n      cc 2e 0f 1f 84 00 00 00 00 00\n\n     From offset 0 this is INT3 followed by the tail of the original\n     10-byte NOP.\n\n     After a previous unoptimization bytes 5..9 may still contain the\n     old call instruction, which remains valid for threads already there.\n\n  2) Rewrite the LEA tail and call displacement:\n      cc [8d 64 24 80 e8 d0 d1 d2 d3]\n\n     From offset 0 this traps on the uprobe INT3.  Bytes 1..9 are not\n     executable entry points while byte 0 is trapped.\n\n  3) Publish the first LEA byte:\n      [48] 8d 64 24 80 e8 d0 d1 d2 d3\n\n     From offset 0 this is:\n        lea -0x80(%rsp), %rsp\n        call <uprobe-trampoline>\n\nUnoptimize path (int3_update_unoptimize):\n\n  1) Initial optimized state:\n      48 8d 64 24 80 e8 d0 d1 d2 d3\n     Same as 3) above.\n\n  2) Trap new entries before restoring the NOP bytes:\n      [cc] 8d 64 24 80 e8 d0 d1 d2 d3\n\n     From offset 0 this traps. A thread that had already executed the\n     LEA can still reach the intact CALL at offset 5.\n\n  3) Restore bytes 1..4 of the original NOP while keeping byte 0 trapped\n     and byte 5 as CALL.\n      cc [2e 0f 1f 84] e8 d0 d1 d2 d3\n\n     From offset 0 this still traps. Offset 5 is still the CALL for any\n     thread that was already past the first LEA byte.\n\n  4) Publish the first byte of the original NOP:\n      [66] 2e 0f 1f 84 e8 d0 d1 d2 d3\n\n     From offset 0 this is the restored 10-byte NOP; the CALL opcode and\n     displacement are now only NOP operands.  Offset 5 still decodes as\n     CALL for a thread that was already there.\n\n     Tthere is only a single target uprobe-trampoline for the given nop10\n     instruction address, so the CALL instruction will not be changed across\n     unoptimization/optimization cycles.\n     Therefore, any task that is preempted at the CALL instruction is guaranteed\n     to observe that CALL and not anything else.\n\nNote as explained in [2] we need to use following nop10:\n       PF1   PF2   ESC   NOPL  MOD   SIB   DISP32\nNOP10: 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 -- cs nopw 0x00000000(%rax,%rax,1)\n\nwhich means we need to allow 0x2e prefix which maps to INAT_PFX_CS\nattribute in is_prefix_bad function.\n\nAlso changing the uprobe syscall error when called out of uprobe\ntrampoline to -EPROTO, so we are able to detect the fixed kernel.\n\nThe optimized uprobe performance stays the same:\n\n        uprobe-nop     :    3.129 ± 0.013M/s\n        uprobe-push    :    3.045 ± 0.006M/s\n        uprobe-ret     :    1.095 ± 0.004M/s\n  -->   uprobe-nop10   :    7.170 ± 0.020M/s\n        uretprobe-nop  :    2.143 ± 0.021M/s\n        uretprobe-push :    2.090 ± 0.000M/s\n        uretprobe-ret  :    0.942 ± 0.000M/s\n  -->   uretprobe-nop10:    3.381 ± 0.003M/s\n        usdt-nop       :    3.245 ± 0.004M/s\n  -->   usdt-nop10     :    7.256 ± 0.023M/s\n\n[1] https://lore.kernel.org/bpf/20260509003146.976844-1-andrii@kernel.org/\n[2] https://lore.kernel.org/bpf/20260518104306.GU3102624@noisy.programming.kicks-ass.net/#t","Type":"Description","Title":"uprobes/x86: Move optimized uprobe from nop5 to nop10"}]}}}