Description
ELFIO through 3.12 contains a NULL pointer dereference vulnerability in relocation_section_accessor get_entry() that allows attackers to crash applications via an unvalidated sh_link index. Attackers can supply a crafted ELF file whose SHT_REL or SHT_RELA section has a dangling sh_link, causing find_hash_section() to dereference null and deny service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| serge1 | ELFIO | ≤ 3.12 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | mstflint | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/elfio-relocation-get-entry-null-deref technical-description exploit
- https://github.com/serge1/ELFIO/blob/8ae6cec5d60495822ecd57d736f66149da9b1830/elfio/elfio_relocation.hpp#L142 technical-description
- https://github.com/serge1/ELFIO product
- VulnCheck Advisory: ELFIO through 3.12 NULL Pointer Dereference via relocation_section_accessor get_entry third-party-advisory