kernel/ucount.c in the Linux kernel 5.14 through 5.16.4, when unprivileged user namespaces are enabled, allows a use-after-free and privilege escalation because a ucounts object can outlive its namespace.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24122.json"
[
{
"id": "CVE-2022-24122-9e7beb9b",
"signature_type": "Function",
"digest": {
"function_hash": "250558302545658754958691605990585672772",
"length": 209.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@f9d87929d451d3e649699d0f1d74f71f77ad38f5",
"target": {
"function": "put_ucounts",
"file": "kernel/ucount.c"
},
"deprecated": false
},
{
"id": "CVE-2022-24122-cd550fd9",
"signature_type": "Function",
"digest": {
"function_hash": "247773438437799891470954272627858956402",
"length": 751.0
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@f9d87929d451d3e649699d0f1d74f71f77ad38f5",
"target": {
"function": "alloc_ucounts",
"file": "kernel/ucount.c"
},
"deprecated": false
},
{
"id": "CVE-2022-24122-edd38672",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"2697039597231819479459206272533004193",
"310055686400644280997076743015151739635",
"246400208619163673362493640585017255964",
"152792917824182143950728375252695944477",
"241569054204460018190466359205366344175",
"52951304924009507091414245258893971558",
"33161598157285600309018723870548221993",
"304297779268244319192378914576378544706"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@f9d87929d451d3e649699d0f1d74f71f77ad38f5",
"target": {
"file": "kernel/ucount.c"
},
"deprecated": false
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24122.json"
[
{
"id": "CVE-2022-24122-715b95a0",
"signature_type": "Function",
"digest": {
"function_hash": "247773438437799891470954272627858956402",
"length": 751.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/f9d87929d451d3e649699d0f1d74f71f77ad38f5",
"target": {
"function": "alloc_ucounts",
"file": "kernel/ucount.c"
},
"deprecated": false
},
{
"id": "CVE-2022-24122-b5f1c1d1",
"signature_type": "Function",
"digest": {
"function_hash": "250558302545658754958691605990585672772",
"length": 209.0
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/f9d87929d451d3e649699d0f1d74f71f77ad38f5",
"target": {
"function": "put_ucounts",
"file": "kernel/ucount.c"
},
"deprecated": false
},
{
"id": "CVE-2022-24122-f4bc51ed",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"2697039597231819479459206272533004193",
"310055686400644280997076743015151739635",
"246400208619163673362493640585017255964",
"152792917824182143950728375252695944477",
"241569054204460018190466359205366344175",
"52951304924009507091414245258893971558",
"33161598157285600309018723870548221993",
"304297779268244319192378914576378544706"
]
},
"signature_version": "v1",
"source": "https://github.com/torvalds/linux/commit/f9d87929d451d3e649699d0f1d74f71f77ad38f5",
"target": {
"file": "kernel/ucount.c"
},
"deprecated": false
}
]