CVE-2021-46968 (GCVE-0-2021-46968)
Vulnerability from cvelistv5 – Published: 2024-02-27 18:47 – Updated: 2025-05-04 07:01
VLAI?
Title
s390/zcrypt: fix zcard and zqueue hot-unplug memleak
Summary
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.
Severity ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Affected:
29c2680fd2bf3862ff5cf2957f198512493156f9 , < 026499a9c2e002e621ad568d1378324ae97e5524
(git)
Affected: 29c2680fd2bf3862ff5cf2957f198512493156f9 , < 055a063a18bcd19b93709e3eac8078d6b2f04599 (git) Affected: 29c2680fd2bf3862ff5cf2957f198512493156f9 , < 971dc8706cee47393d393905d294ea47e39503d3 (git) Affected: 29c2680fd2bf3862ff5cf2957f198512493156f9 , < 70fac8088cfad9f3b379c9082832b4d7532c16c2 (git) |
||
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2024-08-04T05:17:42.992Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2021-46968",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-09-10T16:01:31.707354Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-09-11T17:33:46.536Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/s390/crypto/zcrypt_card.c",
"drivers/s390/crypto/zcrypt_queue.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "026499a9c2e002e621ad568d1378324ae97e5524",
"status": "affected",
"version": "29c2680fd2bf3862ff5cf2957f198512493156f9",
"versionType": "git"
},
{
"lessThan": "055a063a18bcd19b93709e3eac8078d6b2f04599",
"status": "affected",
"version": "29c2680fd2bf3862ff5cf2957f198512493156f9",
"versionType": "git"
},
{
"lessThan": "971dc8706cee47393d393905d294ea47e39503d3",
"status": "affected",
"version": "29c2680fd2bf3862ff5cf2957f198512493156f9",
"versionType": "git"
},
{
"lessThan": "70fac8088cfad9f3b379c9082832b4d7532c16c2",
"status": "affected",
"version": "29c2680fd2bf3862ff5cf2957f198512493156f9",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/s390/crypto/zcrypt_card.c",
"drivers/s390/crypto/zcrypt_queue.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "5.10"
},
{
"lessThan": "5.10",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.36",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.11.*",
"status": "unaffected",
"version": "5.11.20",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.12.*",
"status": "unaffected",
"version": "5.12.3",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "5.13",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.36",
"versionStartIncluding": "5.10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.11.20",
"versionStartIncluding": "5.10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.12.3",
"versionStartIncluding": "5.10",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.13",
"versionStartIncluding": "5.10",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ns390/zcrypt: fix zcard and zqueue hot-unplug memleak\n\nTests with kvm and a kmemdebug kernel showed, that on hot unplug the\nzcard and zqueue structs for the unplugged card or queue are not\nproperly freed because of a mismatch with get/put for the embedded\nkref counter.\n\nThis fix now adjusts the handling of the kref counters. With init the\nkref counter starts with 1. This initial value needs to drop to zero\nwith the unregister of the card or queue to trigger the release and\nfree the object."
}
],
"providerMetadata": {
"dateUpdated": "2025-05-04T07:01:22.480Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524"
},
{
"url": "https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599"
},
{
"url": "https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3"
},
{
"url": "https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2"
}
],
"title": "s390/zcrypt: fix zcard and zqueue hot-unplug memleak",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2021-46968",
"datePublished": "2024-02-27T18:47:04.856Z",
"dateReserved": "2024-02-27T18:42:55.943Z",
"dateUpdated": "2025-05-04T07:01:22.480Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:17:42.992Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-46968\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:01:31.707354Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:18.598Z\"}}], \"cna\": {\"title\": \"s390/zcrypt: fix zcard and zqueue hot-unplug memleak\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"29c2680fd2bf3862ff5cf2957f198512493156f9\", \"lessThan\": \"026499a9c2e002e621ad568d1378324ae97e5524\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29c2680fd2bf3862ff5cf2957f198512493156f9\", \"lessThan\": \"055a063a18bcd19b93709e3eac8078d6b2f04599\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29c2680fd2bf3862ff5cf2957f198512493156f9\", \"lessThan\": \"971dc8706cee47393d393905d294ea47e39503d3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"29c2680fd2bf3862ff5cf2957f198512493156f9\", \"lessThan\": \"70fac8088cfad9f3b379c9082832b4d7532c16c2\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/s390/crypto/zcrypt_card.c\", \"drivers/s390/crypto/zcrypt_queue.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.10\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.10\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.10.36\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.11.20\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.11.*\"}, {\"status\": \"unaffected\", \"version\": \"5.12.3\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.12.*\"}, {\"status\": \"unaffected\", \"version\": \"5.13\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/s390/crypto/zcrypt_card.c\", \"drivers/s390/crypto/zcrypt_queue.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/026499a9c2e002e621ad568d1378324ae97e5524\"}, {\"url\": \"https://git.kernel.org/stable/c/055a063a18bcd19b93709e3eac8078d6b2f04599\"}, {\"url\": \"https://git.kernel.org/stable/c/971dc8706cee47393d393905d294ea47e39503d3\"}, {\"url\": \"https://git.kernel.org/stable/c/70fac8088cfad9f3b379c9082832b4d7532c16c2\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ns390/zcrypt: fix zcard and zqueue hot-unplug memleak\\n\\nTests with kvm and a kmemdebug kernel showed, that on hot unplug the\\nzcard and zqueue structs for the unplugged card or queue are not\\nproperly freed because of a mismatch with get/put for the embedded\\nkref counter.\\n\\nThis fix now adjusts the handling of the kref counters. With init the\\nkref counter starts with 1. This initial value needs to drop to zero\\nwith the unregister of the card or queue to trigger the release and\\nfree the object.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.36\", \"versionStartIncluding\": \"5.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.11.20\", \"versionStartIncluding\": \"5.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.12.3\", \"versionStartIncluding\": \"5.10\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.13\", \"versionStartIncluding\": \"5.10\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T07:01:22.480Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2021-46968\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-04T07:01:22.480Z\", \"dateReserved\": \"2024-02-27T18:42:55.943Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-02-27T18:47:04.856Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…