Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-46968
HistoryFeb 27, 2024 - 6:47 p.m.

CVE-2021-46968 s390/zcrypt: fix zcard and zqueue hot-unplug memleak

2024-02-2718:47:04
Linux
github.com
1
linux kernel
s390/zcrypt
memleak
kref counter
hot unplug
zcard
zqueue

AI Score

6.7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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.

AI Score

6.7

Confidence

Low

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial