CVE-2017-1000253
CVE-2017-1000253
Em resumo
Uma falha no carregamento de certos executáveis em kernels Linux pode corromper a memória quando a aleatorização de endereços está ativada. Um atacante pode explorar isso para derrubar o sistema ou executar código malicioso.
Detalhe técnico
A vulnerabilidade ocorre em load_elf_binary() com CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE habilitado; a função não contabiliza o tamanho total do binário ao mapear segmentos PT_LOAD abaixo de mm->mmap_base, permitindo que segmentos subsequentes se sobreponham na área de gap entre stack e binário. Constitui overflow de buffer (CWE-119) que requer contexto local; impacto inclui negação de serviço e execução de código arbitrário.
Resumo gerado e traduzido por IA a partir da descrição oficial.
Linux distributions that have not patched their long-term kernels with https://git.kernel.org/linus/a87938b2e246b81b4fb713edb371a9fa3c5c3c86 (committed on April 14, 2015). This kernel vulnerability was fixed in April 2015 by commit a87938b2e246b81b4fb713edb371a9fa3c5c3c86 (backported to Linux 3.10.77 in May 2015), but it was not recognized as a security threat. With CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE enabled, and a normal top-down address allocation strategy, load_elf_binary() will attempt to map a PIE binary into an address range immediately below mm->mmap_base. Unfortunately, load_elf_ binary() does not take account of the need to allocate sufficient space for the entire binary which means that, while the first PT_LOAD segment is mapped below mm->mmap_base, the subsequent PT_LOAD segment(s) end up being mapped above mm->mmap_base into the are that is supposed to be the "gap" between the stack and the binary.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Produtos afetados
n/a · n/aPoCs públicas encontradas — 3
githubgithub.com/RicterZ/PIE-Stack-Clash-CVE-2017-1000253★ 7githubgithub.com/sxlmnwb/CVE-2017-1000253★ 4exploitdbwww.exploit-db.com/exploits/42887não verificado⚠ Recursos públicos, para você avaliar a exposição de sistemas que controla ou está autorizado a testar. Teste apenas com autorização.
Quer saber se a sua infraestrutura está exposta a isto?
Falar com a TrueHacking →Referências
https://access.redhat.com/errata/RHSA-2017:2793https://access.redhat.com/errata/RHSA-2017:2794https://access.redhat.com/errata/RHSA-2017:2795https://access.redhat.com/errata/RHSA-2017:2796https://access.redhat.com/errata/RHSA-2017:2797https://access.redhat.com/errata/RHSA-2017:2798https://access.redhat.com/errata/RHSA-2017:2799https://access.redhat.com/errata/RHSA-2017:2800https://access.redhat.com/errata/RHSA-2017:2801https://access.redhat.com/errata/RHSA-2017:2802https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-1000253https://www.qualys.com/2017/09/26/cve-2017-1000253/cve-2017-1000253.txt