5.5medium
s390/zcrypt: fix zcard and zqueue hot-unplug memleak
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: s390/zcrypt: fix zcard and zqueue hot-unplug memleak Tests with kvm and a kmemdebug kernel showed, that on hot unplug the zcard and zqueue structs for the unplugged card or queue are not properly freed because of a mismatch with get/put for the embedded kref counter. This fix now adjusts the handling of the kref counters. With init the kref counter starts with 1. This initial value needs to drop to zero with the unregister of the card or queue to trigger the release and free the object.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 29c2680fd2bf3862ff5cf2957f198512493156f9 before 026499a9c2e002e621ad568d1378324ae97e5524, from 29c2680fd2bf3862ff5cf2957f198512493156f9 before 055a063a18bcd19b93709e3eac8078d6b2f04599, from 29c2680fd2bf3862ff5cf2957f198512493156f9 before 971dc8706cee47393d393905d294ea47e39503d3, from 29c2680fd2bf3862ff5cf2957f198512493156f9 before 70fac8088cfad9f3b379c9082832b4d7532c16c2, 5.10 Not affected: before 5.10, from 5.10.36 up to 5.10.*, from 5.11.20 up to 5.11.*, from 5.12.3 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.10 before 5.10.36, from 5.11 before 5.11.20, from 5.12 before 5.12.3 | NVD |
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: s390/zcrypt: fix zcard and zqueue hot-unplug memleak Tests with kvm and a kmemdebug kernel showed, that on hot unplug the zcard and zqueue structs for the unplugged card or queue are not properly freed because of a mismatch with get/put for the embedded kref counter. This fix now adjusts the handling of the kref counters. With init the kref counter starts with 1. This initial value needs to drop to zero with the unregister of the card or queue to trigger the release and free the object.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: s390/zcrypt: corrige zcard y zqueue hot-unplug memleak Las pruebas con kvm y un kernel kmemdebug mostraron que, al desconectar en caliente, las estructuras zcard y zqueue para la tarjeta o cola desconectada no están liberado correctamente debido a una discrepancia con get/put para el contador kref integrado. Esta solución ahora ajusta el manejo de los contadores kref. Con init, el contador kref comienza con 1. Este valor inicial debe caer a cero con la cancelación del registro de la tarjeta o cola para activar la liberación y liberar el objeto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46968 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-46968 changed 2026-06-17 | Public domain |