CVE-2021-46968

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

08 Jan 2025, 16:50

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
First Time Linux
Linux linux Kernel
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524 - () https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524 - Patch
References () https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599 - () https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599 - Patch
References () https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2 - () https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2 - Patch
References () https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3 - () https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3 - Patch
CWE CWE-401

21 Nov 2024, 06:35

Type Values Removed Values Added
References () https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524 - () https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524 -
References () https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599 - () https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599 -
References () https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2 - () https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2 -
References () https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3 - () https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3 -

28 Feb 2024, 14:06

Type Values Removed Values Added
Summary
  • (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.

27 Feb 2024, 19:04

Type Values Removed Values Added
New CVE

Information

Published : 2024-02-27 19:04

Updated : 2025-01-08 16:50


NVD link : CVE-2021-46968

Mitre link : CVE-2021-46968

CVE.ORG link : CVE-2021-46968


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-401

Missing Release of Memory after Effective Lifetime