CVE-2026-31719
JSON

7.5high

crypto: krb5enc - fix async decrypt skipping hash verification

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: crypto: krb5enc - fix async decrypt skipping hash verification krb5enc_dispatch_decrypt() sets req->base.complete as the skcipher callback, which is the caller's own completion handler. When the skcipher completes asynchronously, this signals "done" to the caller without executing krb5enc_dispatch_decrypt_hash(), completely bypassing the integrity verification (hash check). Compare with the encrypt path which correctly uses krb5enc_encrypt_done as an intermediate callback to chain into the hash computation on async completion. Fix by adding krb5enc_decrypt_done as an intermediate callback that chains into krb5enc_dispatch_decrypt_hash() upon async skcipher completion, matching the encrypt path's callback pattern. Also fix EBUSY/EINPROGRESS handling throughout: remove krb5enc_request_complete() which incorrectly swallowed EINPROGRESS notifications that must be passed up to callers waiting on backlogged requests, and add missing EBUSY checks in krb5enc_encrypt_ahash_done for the dispatch_encrypt return value. Unset MAY_BACKLOG on the async completion path so the user won't see back-to-back EINPROGRESS notifications.

Affected

Product or packageVersionsReported by
Linux Linuxfrom d1775a177f7f38156d541c8a3e3c91eaa6e69699 before 07cbb1bd424370671814a862913c99a6e1441588, from d1775a177f7f38156d541c8a3e3c91eaa6e69699 before e51f42114abbdf47f29dda43e7826be28907fcd2, from d1775a177f7f38156d541c8a3e3c91eaa6e69699 before 3bfbf5f0a99c991769ec562721285df7ab69240b, 6.15
Not affected: before 6.15, from 6.18.25 up to 6.18.*, from 7.0.2 up to 7.0.*, from 7.1 up to *
CVE List
linux linux_kernelfrom 6.15 before 6.18.25, from 6.19 before 7.0.2, 7.1NVD

Classification

CWE-354

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: crypto: krb5enc - fix async decrypt skipping hash verification krb5enc_dispatch_decrypt() sets req->base.complete as the skcipher callback, which is the caller's own completion handler. When the skcipher completes asynchronously, this signals "done" to the caller without executing krb5enc_dispatch_decrypt_hash(), completely bypassing the integrity verification (hash check). Compare with the encrypt path which correctly uses krb5enc_encrypt_done as an intermediate callback to chain into the hash computation on async completion. Fix by adding krb5enc_decrypt_done as an intermediate callback that chains into krb5enc_dispatch_decrypt_hash() upon async skcipher completion, matching the encrypt path's callback pattern. Also fix EBUSY/EINPROGRESS handling throughout: remove krb5enc_request_complete() which incorrectly swallowed EINPROGRESS notifications that must be passed up to callers waiting on backlogged requests, and add missing EBUSY checks in krb5enc_encrypt_ahash_done for the dispatch_encrypt return value. Unset MAY_BACKLOG on the async completion path so the user won't see back-to-back EINPROGRESS notifications.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: cripto: krb5enc - corrige el descifrado asíncrono que omite la verificación de hash krb5enc_dispatch_decrypt() establece req -> base.complete como la devolución de llamada de skcipher, que es el propio gestor de finalización del llamador. Cuando el skcipher finaliza asíncronamente, esto señala ’hecho’ al llamador sin ejecutar krb5enc_dispatch_decrypt_hash(), omitiendo completamente la verificación de integridad (comprobación de hash). Comparar con la ruta de cifrado que utiliza correctamente krb5enc_encrypt_done como una devolución de llamada intermedia para encadenar en el cálculo de hash en la finalización asíncrona. Solución añadiendo krb5enc_decrypt_done como una devolución de llamada intermedia que encadena en krb5enc_dispatch_decrypt_hash() tras la finalización asíncrona de skcipher, coincidiendo con el patrón de devolución de llamada de la ruta de cifrado. También corrige el manejo de EBUSY/EINPROGRESS en todo el código: elimina krb5enc_request_complete() que incorrectamente ’tragaba’ las notificaciones de EINPROGRESS que deben pasarse a los llamadores que esperan solicitudes en cola, y añade comprobaciones de EBUSY faltantes en krb5enc_encrypt_ahash_done para el valor de retorno de dispatch_encrypt. Desestablece MAY_BACKLOG en la ruta de finalización asíncrona para que el usuario no vea notificaciones de EINPROGRESS consecutivas.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31719 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-31719 changed 2026-11-11Public domain