В ядре Linux до 5.1.17, ptrace_link в kernel/ptrace.c неправильно обрабатывает запись учетных данных процесса, который хочет создать отношения ptrace, что позволяет локальным пользователям получить root-доступ, используя определенные сценарии с отношениями родительский-дочерний процесс, где родитель теряет привилегии и вызывает execve (потенциально позволяя злоумышленнику контролировать). Одним из факторов, способствующих этому, является проблема продолжительности жизни объекта (которая также может вызвать панику). Другим фактором, способствующим этому, является неправильная маркировка отношения ptrace как привилегированного, которое можно использовать через (например) помощник Polkit's pkexec с PTRACE_TRACEME.
NOTE: SELinux deny_ptrace может быть удобным обходным путем в некоторых средах.
Показать оригинальное описание (EN)
In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to create a ptrace relationship, which allows local users to obtain root access by leveraging certain scenarios with a parent-child process relationship, where a parent drops privileges and calls execve (potentially allowing control by an attacker). One contributing factor is an object lifetime issue (which can also cause a panic). Another contributing factor is incorrect marking of a ptrace relationship as privileged, which is exploitable through (for example) Polkit's pkexec helper with PTRACE_TRACEME. NOTE: SELinux deny_ptrace might be a usable workaround in some environments.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 43
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.16.52
|
3.16.71
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.1.39
|
4.2
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.4.40
|
4.4.185
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.8.16
|
4.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.9.1
|
4.9.185
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.10
|
4.14.133
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.15
|
4.19.58
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.20
|
5.1.17
|
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
— | — |
|
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:*
|
— | — |
|
Canonical Ubuntu_Linux
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*
|
— | — |
|
Canonical Ubuntu_Linux
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:esm:*:*:*
|
— | — |
|
Canonical Ubuntu_Linux
cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Arm_64
cpe:2.3:o:redhat:enterprise_linux_for_arm_64:7.0_aarch64:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Ibm_Z_Systems
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:7.0_s390x:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time
cpe:2.3:o:redhat:enterprise_linux_for_real_time:8:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_For_Nfv
cpe:2.3:o:redhat:enterprise_linux_for_real_time_for_nfv:8.0:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_For_Nfv_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_for_nfv_tus:8.2:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_For_Nfv_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_for_nfv_tus:8.4:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_For_Nfv_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_for_nfv_tus:8.6:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_For_Nfv_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_for_nfv_tus:8.8:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_tus:8.2:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_tus:8.4:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_tus:8.6:*:*:*:*:*:*:*
|
— | — |
|
Redhat Enterprise_Linux_For_Real_Time_Tus
cpe:2.3:o:redhat:enterprise_linux_for_real_time_tus:8.8:*:*:*:*:*:*:*
|
— | — |
|
Netapp Aff_A700s_Firmware
cpe:2.3:o:netapp:aff_a700s_firmware:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Aff_A700s
cpe:2.3:h:netapp:aff_a700s:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp H410c_Firmware
cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp H410c
cpe:2.3:h:netapp:h410c:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp H610s_Firmware
cpe:2.3:o:netapp:h610s_firmware:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp H610s
cpe:2.3:h:netapp:h610s:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Active_Iq_Unified_Manager
cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
|
— | — |
|
Netapp E-Series_Performance_Analyzer
cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp E-Series_Santricity_Os_Controller
cpe:2.3:a:netapp:e-series_santricity_os_controller:*:*:*:*:*:*:*:*
|
11.0.0
|
<= 11.60.3
|
|
Netapp Hci_Management_Node
cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Service_Processor
cpe:2.3:a:netapp:service_processor:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Solidfire
cpe:2.3:a:netapp:solidfire:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Steelstore_Cloud_Integrated_Storage
cpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Hci_Compute_Node
cpe:2.3:h:netapp:hci_compute_node:-:*:*:*:*:*:*:*
|
— | — |