Описание
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
Отчет
This vulnerability was introduced in glibc version 2.34. RHEL-8 ships glibc 2.28, which is not originally affected by this vulnerability. However, the commit that introduced this vulnerability was backported to RHEL-8.5, making this version and onward vulnerable. RHEL-8.4 and older are not affected by this vulnerability.
Меры по смягчению последствий
For customers who cannot update immediately and do not have Secure Boot feature enabled, the issue can be mitigated using the provided SystemTap script with the following steps. When enabled, any setuid program invoked with GLIBC_TUNABLES in the environment will be terminated immediately. To invoke the setuid program, users will then have to unset or clear the GLIBC_TUNABLES envvar, e.g. GLIBC_TUNABLES= sudo
.
Note that these mitigation steps will need to be repeated if the system is rebooted.
- Install required systemtap packages and dependencies as per - https://access.redhat.com/solutions/5441
- Create the following systemtap script, and name it stap_block_suid_tunables.stp:
- Load the systemtap module into the running kernel:
- Ensure the module is loaded:
- Once the glibc package is updated to the version containing the fix, the systemtap generated kernel module can be removed by running:
If Secure Boot is enabled on a system, the SystemTap module must be signed. An external compiling server can be used to sign the generated kernel module with a key enrolled into the kernel's keyring or starting with SystemTap 4.7 you can sign a module without a compile server. See further information here - https://www.redhat.com/sysadmin/secure-boot-systemtap
Затронутые пакеты
Платформа | Пакет | Состояние | Рекомендация | Релиз |
---|---|---|---|---|
Red Hat Enterprise Linux 6 | glibc | Not affected | ||
Red Hat Enterprise Linux 7 | compat-glibc | Not affected | ||
Red Hat Enterprise Linux 7 | glibc | Not affected | ||
Red Hat Enterprise Linux 8 | glibc | Fixed | RHSA-2023:5455 | 05.10.2023 |
Red Hat Enterprise Linux 8 | glibc | Fixed | RHSA-2023:5455 | 05.10.2023 |
Red Hat Enterprise Linux 8.6 Extended Update Support | glibc | Fixed | RHSA-2023:5476 | 05.10.2023 |
Red Hat Enterprise Linux 9 | glibc | Fixed | RHBA-2024:2413 | 30.04.2024 |
Red Hat Enterprise Linux 9 | glibc | Fixed | RHSA-2023:5453 | 05.10.2023 |
Red Hat Enterprise Linux 9 | glibc | Fixed | RHBA-2024:2413 | 30.04.2024 |
Red Hat Enterprise Linux 9 | glibc | Fixed | RHSA-2023:5453 | 05.10.2023 |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
7.8 High
CVSS3
Связанные уязвимости
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
A buffer overflow was discovered in the GNU C Library's dynamic loader ...
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
7.8 High
CVSS3