In the Linux kernel before 5.15.3, fs/quota/quota_tree.c does not validate the block number in the quota tree (on disk). This can, for example, lead to a kernel/locking/rwsem.c use-after-free if there is a corrupted quota file.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-45868.json"
[
{
"digest": {
"function_hash": "79956535207872724333752640515351032751",
"length": 1139.0
},
"signature_version": "v1",
"target": {
"file": "fs/quota/quota_tree.c",
"function": "remove_tree"
},
"signature_type": "Function",
"id": "CVE-2021-45868-443c02e9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9bf3d20331295b1ecb81f4ed9ef358c51699a050",
"deprecated": false
},
{
"digest": {
"function_hash": "153143437379853471903703610248362763374",
"length": 681.0
},
"signature_version": "v1",
"target": {
"file": "fs/quota/quota_tree.c",
"function": "find_tree_dqentry"
},
"signature_type": "Function",
"id": "CVE-2021-45868-de01a9cc",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9bf3d20331295b1ecb81f4ed9ef358c51699a050",
"deprecated": false
},
{
"digest": {
"line_hashes": [
"265686241583302303413568829352636677941",
"46399149980081553461536321147700018143",
"36477909687444099732166482757874835627",
"46912151377276489292774467768204233509",
"158502022257061334178136035723860398070",
"297627195921165760749137243955612425653",
"238832249191092338799051255227434814015",
"240329084519757693645000363681413697173"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "fs/quota/quota_tree.c"
},
"signature_type": "Line",
"id": "CVE-2021-45868-fc9e76e5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@9bf3d20331295b1ecb81f4ed9ef358c51699a050",
"deprecated": false
}
]