Skip to content

ext/pcre: preg_match() use-after-free of the subpatterns table across… - #26106

Closed
devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh26100
Closed

devnexen wants to merge 1 commit into
php:PHP-8.4from
devnexen:gh26100

Conversation

@devnexen

@devnexen devnexen commented Dec 6, 2026

Copy link
Copy Markdown
Member

… requests.

A table created after the pcre request shutdown stayed in the persistent cache entry. The tables are now freed in a post-deactivate handler.

Fix GH-26100

… requests.

A table created after the pcre request shutdown stayed in the persistent
cache entry. The tables are now freed in a post-deactivate handler.

Fix phpGH-26100
@devnexen
devnexen marked this pull request as ready for review December 6, 2026 07:13

@jorgsowa jorgsowa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix makes sense to me. The table cache is in PHP-8.4 too (GH-17122), so shouldn't it target PHP-8.4?

@devnexen
devnexen changed the base branch from PHP-8.5 to PHP-8.4 December 6, 2026 12:28
@devnexen

devnexen commented Dec 6, 2026

Copy link
Copy Markdown
Member Author

was just mistake of mine

@devnexen devnexen closed this in 6c6cfb6 Dec 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ext/pcre: cross-request use-after-free (UAF) of the cached subpatterns table

2 participants