Use After Free/Double Free in Garbage Collection
A use-after-free and double-free flaw was reported in PHP's garbage collection code, tied to a commit that was later reverted. The reporter believed the issue had already been fixed by the revert and was unsure whether it qualified as a security bug.
- Fixed in 2 months
- Paid in 2 months
- Disclosed after 3.2 years
https://bugs.php.net/bug.php?id=72605
I don't know if the bug is qualified.
I reported this bug since php some guys added this commit: https://github.com/php/php-src/commit/1c84b55adea936b065a20102202bea3d1d243225
Then they had reverted this commit before PHP updates release: https://github.com/php/php-src/commit/171c759d791f809ebc31711fd0b0b5bb632cd2cc
So I think this bug have been fixed. if I don't submit this bug until php updates release, then this bug will be tagged as Type: Security and fix in next PHP updates release.
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
Impact
The text does not describe a concrete exploit; it only states the bug was likely fixed by reverting the commit before a release.
What the attacker needed
None stated
The fix
The text says the problematic commit was reverted, which the reporter believes fixed the bug.
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.
A use-after-free means the program keeps using memory after freeing it, and a double-free means it frees the same memory twice. These are memory-safety bugs.
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.