An issue was discovered in MariaDB Server before 11.4.10, 11.5.x through 11.8.x before 11.8.6, and 12.x before 12.2.2. If the caching_sha2_password authentication plugin is installed, and some user accounts are configured to use it, a large packet can crash the server because sha256_crypt_r uses alloca.
The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Mariadb | Mariadb | * | 11.4.10 (excluding) |
| Mariadb | Mariadb | 11.5.0 (including) | 11.8.6 (excluding) |
| Mariadb | Mariadb | 12.0.0 (including) | 12.2.2 (excluding) |
| Mariadb | Ubuntu | upstream | * |
| Mariadb-10.0 | Ubuntu | esm-apps/xenial | * |