In the Linux kernel, the following vulnerability has been resolved:
srcu: Tighten cleanupsrcustruct() GP checks
Currently, cleanupsrcustruct() checks for a grace period in progress, but it does not check for a grace period that has not yet started but which might start at any time. Such a situation could result in a use-after-free bug, so this commit adds a check for a grace period that is needed but not yet started to cleanupsrcustruct().
[
{
"signature_type": "Function",
"digest": {
"function_hash": "96208694784902269668103669747184146299",
"length": 693.0
},
"target": {
"file": "kernel/rcu/srcutree.c",
"function": "cleanup_srcu_struct"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e997dda6502eefbc1032d6b0da7b353c53344b07",
"id": "CVE-2022-49651-12632302",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"304439661436199272486940583963014438438",
"53926427286014811965347317309156705706",
"161313299782241855666628437384702788186",
"77466467310131185099127897329679823651",
"280514119425674106899370197055626499111",
"315003799064984997120806022454062449852",
"107984959706674064352653326583057455532"
]
},
"target": {
"file": "kernel/rcu/srcutree.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e997dda6502eefbc1032d6b0da7b353c53344b07",
"id": "CVE-2022-49651-8cb1cae0",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "96208694784902269668103669747184146299",
"length": 693.0
},
"target": {
"file": "kernel/rcu/srcutree.c",
"function": "cleanup_srcu_struct"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ed00760203d8018bee042fbfe8e076579be2c2b",
"id": "CVE-2022-49651-e0967beb",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"304439661436199272486940583963014438438",
"53926427286014811965347317309156705706",
"161313299782241855666628437384702788186",
"77466467310131185099127897329679823651",
"280514119425674106899370197055626499111",
"315003799064984997120806022454062449852",
"107984959706674064352653326583057455532"
]
},
"target": {
"file": "kernel/rcu/srcutree.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ed00760203d8018bee042fbfe8e076579be2c2b",
"id": "CVE-2022-49651-f01e543e",
"deprecated": false,
"signature_version": "v1"
}
]