uClibC and uClibC-ng libpthread linuxthreads memory corruption vulnerabilities
A memory corruption vulnerability exists in the libpthread linuxthreads implementation of uClibC and uClibC-ng. An attacker who can create many threads can cause memory to be remapped, potentially overwriting loaded libraries or application code.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the libpthread linuxthreads functionality of uClibC 0.9.33.2 and uClibC-ng 1.0.40. Thread allocation can lead to memory corruption.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The thread stack allocation uses mmap with the MAP_FIXED flag, which forces mapping at a specific address and can overwrite existing memory mappings.
Impact
An attacker could cause memory corruption, potentially leading to code execution or a denial of service, though the CVSS vector indicates high attack complexity.
What the attacker needed
Ability to create many threads; 32-bit memory space (more likely)
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program creates many threads, the library that manages them allocates memory for each thread's stack. Due to a mistake, these allocations can overwrite memory that holds important code or data, which could let an attacker run their own code or crash the program.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.