Exploit databaseDownload repository ZIP
GH-c71af2b94cd2da4e8e1787feec32fc8f
0pts/0pts-bitpixie
Sources for CVE-2023-21563
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files128
0pts/0pts-bitpixieRevision 7c7c6a5526a7
- ↑..Parent directory
- .a.out.h.cmd
- .amd_hsmp.h.cmd
- .auxvec.h.cmd
- .bitsperlong.h.cmd
- .boot.h.cmd
- .bootparam.h.cmd
- .bpf_perf_event.h.cmd
- .byteorder.h.cmd
- .debugreg.h.cmd
- .e820.h.cmd
- .errno.h.cmd
- .fcntl.h.cmd
- .hw_breakpoint.h.cmd
- .hwcap2.h.cmd
- .ioctl.h.cmd
- .ioctls.h.cmd
- .ipcbuf.h.cmd
- .ist.h.cmd
- .kvm.h.cmd
- .kvm_para.h.cmd
- .kvm_perf.h.cmd
- .ldt.h.cmd
- .mce.h.cmd
- .mman.h.cmd
- .msgbuf.h.cmd
- .msr.h.cmd
- .mtrr.h.cmd
- .param.h.cmd
- .perf_regs.h.cmd
- .poll.h.cmd
- .posix_types.h.cmd
- .posix_types_32.h.cmd
- .posix_types_64.h.cmd
- .posix_types_x32.h.cmd
- .prctl.h.cmd
- .processor-flags.h.cmd
- .ptrace-abi.h.cmd
- .ptrace.h.cmd
- .resource.h.cmd
- .sembuf.h.cmd
- .setup.h.cmd
- .sgx.h.cmd
- .shmbuf.h.cmd
- .sigcontext.h.cmd
- .sigcontext32.h.cmd
- .siginfo.h.cmd
- .signal.h.cmd
- .socket.h.cmd
- .sockios.h.cmd
- .stat.h.cmd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
CVE-2024-1086/include/linux-lts-6.1.72/asm/ucontext.h
Text · 2,117 bytes/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _ASM_X86_UCONTEXT_H
#define _ASM_X86_UCONTEXT_H
/*
* Indicates the presence of extended state information in the memory
* layout pointed by the fpstate pointer in the ucontext's sigcontext
* struct (uc_mcontext).
*/
#define UC_FP_XSTATE 0x1
#ifdef __x86_64__
/*
* UC_SIGCONTEXT_SS will be set when delivering 64-bit or x32 signals on
* kernels that save SS in the sigcontext. All kernels that set
* UC_SIGCONTEXT_SS will correctly restore at least the low 32 bits of esp
* regardless of SS (i.e. they implement espfix).
*
* Kernels that set UC_SIGCONTEXT_SS will also set UC_STRICT_RESTORE_SS
* when delivering a signal that came from 64-bit code.
*
* Sigreturn restores SS as follows:
*
* if (saved SS is valid || UC_STRICT_RESTORE_SS is set ||
* saved CS is not 64-bit)
* new SS = saved SS (will fail IRET and signal if invalid)
* else
* new SS = a flat 32-bit data segment
*
* This behavior serves three purposes:
*
* - Legacy programs that construct a 64-bit sigcontext from scratch
* with zero or garbage in the SS slot (e.g. old CRIU) and call
* sigreturn will still work.
*
* - Old DOSEMU versions sometimes catch a signal from a segmented
* context, delete the old SS segment (with modify_ldt), and change
* the saved CS to a 64-bit segment. These DOSEMU versions expect
* sigreturn to send them back to 64-bit mode without killing them,
* despite the fact that the SS selector when the signal was raised is
* no longer valid. UC_STRICT_RESTORE_SS will be clear, so the kernel
* will fix up SS for these DOSEMU versions.
*
* - Old and new programs that catch a signal and return without
* modifying the saved context will end up in exactly the state they
* started in, even if they were running in a segmented context when
* the signal was raised.. Old kernels would lose track of the
* previous SS value.
*/
#define UC_SIGCONTEXT_SS 0x2
#define UC_STRICT_RESTORE_SS 0x4
#endif
#include <asm-generic/ucontext.h>
#endif /* _ASM_X86_UCONTEXT_H */