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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-02-27T18:47:04.856Z
- Modified: 2026-06-17T04:16:01.317Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.10 before 5.10.36; from 5.11 before 5.11.20; from 5.12 before 5.12.3

## References

- <https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524> (patch)
- <https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599> (patch)
- <https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3> (patch)
- <https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2> (patch)

## Sources

- CVE List: [CVE-2021-46968](https://www.cve.org/CVERecord?id=CVE-2021-46968), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-46968](https://nvd.nist.gov/vuln/detail/CVE-2021-46968), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46968 · Whole record: https://cve.day/CVE-2021-46968.json · Rebuilt by cve.day 2026-11-25T22:58:08.592Z
