PT-2026-162781

CVE-2026-138921

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

CVSS 3.1
7.8
Alta
MétricasAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
crypto: caam - fix double-free in caam rsa set priv key form()
caam rsa set priv key form() frees the partially allocated key components (p, q, tmp1, tmp2, dp, dq) with kfree sensitive() on its error path, but does not set those pointers to NULL afterward.
When the function returns an error, caam rsa set priv key() jumps to its err label and calls caam rsa free key(), which frees all of those same pointers again, resulting in a double-free.
This is reachable when the allocation of q, tmp1, tmp2, dp, dq or qinv fails, e.g. under memory pressure, or for a malformed key whose CRT members decode to zero length and make caam read rsa crt() return NULL.
Set each pointer to NULL right after freeing it so that the subsequent caam rsa free key() call becomes a no-op for the already-freed fields.
Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾