Affected versions
Ubuntu22.04:LTS/php8.1
- Affected versions
- <8.1.2-1ubuntu2.24
- Fixed version
- 8.1.2-1ubuntu2.24
Ubuntu24.04:LTS/php8.3
- Affected versions
- <8.3.6-0ubuntu0.24.04.9
- Fixed version
- 8.3.6-0ubuntu0.24.04.9
Ubuntu25.10/php8.4
- Affected versions
- <8.4.11-1ubuntu1.2
- Fixed version
- 8.4.11-1ubuntu1.2
Ubuntu26.04:LTS/php8.5
- Affected versions
- <8.5.4-0ubuntu1.1
- Fixed version
- 8.5.4-0ubuntu1.1
UbuntuPro:14.04:LTS/php5
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/php7.0
- Affected versions
- <7.0.33-0ubuntu0.16.04.16+esm20
- Fixed version
- 7.0.33-0ubuntu0.16.04.16+esm20
UbuntuPro:18.04:LTS/php7.2
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/php7.4
- Affected versions
- *
- Fixed version
- Not reported
Description
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the metaphone() function in ext/standard/metaphone.c uses a signed int variable to track the current position within the input string. If a string longer than 2,147,483,647 bytes is passed, a signed integer overflow occurs, resulting in undefined behavior. This can lead to an out-of-bounds read, causing a segmentation fault or access to unrelated memory, and may affect the availability of the PHP process.

