CVE-2021-46968

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

State
Published
Severity
Not scored
Published
Feb 27, 2024
Updated
May 11, 2026
Reserved
Feb 27, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 29c2680fd2bf3862ff5cf2957f198512493156f9 to before 026499a9c2e002e621ad568d1378324ae97e5524Affected
  • 29c2680fd2bf3862ff5cf2957f198512493156f9 to before 055a063a18bcd19b93709e3eac8078d6b2f04599Affected
  • 29c2680fd2bf3862ff5cf2957f198512493156f9 to before 971dc8706cee47393d393905d294ea47e39503d3Affected
  • 29c2680fd2bf3862ff5cf2957f198512493156f9 to before 70fac8088cfad9f3b379c9082832b4d7532c16c2Affected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.36 through 5.10.*Not affected
  • 5.11.20 through 5.11.*Not affected
  • 5.12.3 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.