9.8critical
net: tls: handle backlogging of crypto requests
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.75% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: tls: handle backlogging of crypto requests Since we're setting the CRYPTO_TFM_REQ_MAY_BACKLOG flag on our requests to the crypto API, crypto_aead_{encrypt,decrypt} can return -EBUSY instead of -EINPROGRESS in valid situations. For example, when the cryptd queue for AESNI is full (easy to trigger with an artificially low cryptd.cryptd_max_cpu_qlen), requests will be enqueued to the backlog but still processed. In that case, the async callback will also be called twice: first with err == -EINPROGRESS, which it seems we can just ignore, then with err == 0. Compared to Sabrina's original patch this version uses the new tls_*crypt_async_wait() helpers and converts the EBUSY to EINPROGRESS to avoid having to modify all the error handling paths. The handling is identical.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a54667f6728c2714a400f3c884727da74b6d1717 before 3ade391adc584f17b5570fd205de3ad029090368, from a54667f6728c2714a400f3c884727da74b6d1717 before cd1bbca03f3c1d845ce274c0d0a66de8e5929f72, from a54667f6728c2714a400f3c884727da74b6d1717 before 13eca403876bbea3716e82cdfe6f1e6febb38754, from a54667f6728c2714a400f3c884727da74b6d1717 before ab6397f072e5097f267abf5cb08a8004e6b17694, from a54667f6728c2714a400f3c884727da74b6d1717 before 8590541473188741055d27b955db0777569438e3, 4.16 Not affected: before 4.16, from 5.15.160 up to 5.15.*, from 6.1.84 up to 6.1.*, from 6.6.18 up to 6.6.*, from 6.7.6 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | from 4.16.0 before 6.1.84, from 6.2.0 before 6.6.18, from 6.7.0 before 6.7.6 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: tls: handle backlogging of crypto requests Since we're setting the CRYPTO_TFM_REQ_MAY_BACKLOG flag on our requests to the crypto API, crypto_aead_{encrypt,decrypt} can return -EBUSY instead of -EINPROGRESS in valid situations. For example, when the cryptd queue for AESNI is full (easy to trigger with an artificially low cryptd.cryptd_max_cpu_qlen), requests will be enqueued to the backlog but still processed. In that case, the async callback will also be called twice: first with err == -EINPROGRESS, which it seems we can just ignore, then with err == 0. Compared to Sabrina's original patch this version uses the new tls_*crypt_async_wait() helpers and converts the EBUSY to EINPROGRESS to avoid having to modify all the error handling paths. The handling is identical.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: tls: manejar el retraso de solicitudes criptográficas Dado que estamos configurando el indicador CRYPTO_TFM_REQ_MAY_BACKLOG en nuestras solicitudes a la API criptográfica, crypto_aead_{encrypt,decrypt} puede devolver -EBUSY en lugar de - EINPROGRESS en situaciones válidas. Por ejemplo, cuando la cola cryptd para AESNI está llena (fácil de activar con un cryptd.cryptd_max_cpu_qlen artificialmente bajo), las solicitudes se pondrán en cola en el trabajo pendiente, pero aún así se procesarán. En ese caso, la devolución de llamada asíncrona también se llamará dos veces: primero con err == -EINPROGRESS, que parece que podemos ignorar, luego con err == 0. En comparación con el parche original de Sabrina, esta versión usa el nuevo tls_*crypt_async_wait( ) ayuda y convierte EBUSY a EINPROGRESS para evitar tener que modificar todas las rutas de manejo de errores. El manejo es idéntico.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-26584 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-26584 changed 2026-08-04 | Public domain |