A use-after-free vulnerability introduced in glibc upstream version 2.14 was found in the way the tilde expansion was carried out. Directory paths containing an initial tilde followed by a valid username were affected by this issue. A local attacker could exploit this flaw by creating a specially crafted path that, when processed by the glob function, would potentially lead to arbitrary code execution. This was fixed in version 2.32.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Glibc | Gnu | * | 2.32.0 (excluding) |
Red Hat Enterprise Linux 8 | RedHat | glibc-0:2.28-127.el8 | * |
Red Hat Enterprise Linux 8 | RedHat | glibc-0:2.28-127.el8 | * |
Eglibc | Ubuntu | esm-infra-legacy/trusty | * |
Eglibc | Ubuntu | precise/esm | * |
Eglibc | Ubuntu | trusty | * |
Eglibc | Ubuntu | trusty/esm | * |
Glibc | Ubuntu | bionic | * |
Glibc | Ubuntu | eoan | * |
Glibc | Ubuntu | esm-infra/bionic | * |
Glibc | Ubuntu | esm-infra/xenial | * |
Glibc | Ubuntu | trusty | * |
Glibc | Ubuntu | xenial | * |