An issue was discovered in ksmbd in the Linux kernel 5.15 through 5.19 before 5.19.2. There is an out-of-bounds read and OOPS for SMB2_WRITE, when there is a large length in the zero DataOffset case.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-47943.json"
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"25327370806616874081571311903429855025",
"231796848854606141010880654217809760044",
"234724835303170357694202796752604469022",
"3980272772043614659399382622357822545",
"125061859617821204085298181641906961205",
"284645633346606220809863948462369641287",
"87398475669339058776504579869334569296",
"336056564089258493030679038054851576560",
"227675685551237542933185298556386656065",
"312471975081464707887381227687732179944",
"276628009918735829351446357084677907352"
]
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@ac60778b87e45576d7bfdbd6f53df902654e6f09",
"target": {
"file": "fs/ksmbd/smb2pdu.c"
},
"id": "CVE-2022-47943-6b61ccac"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"325743389040955611847917529919100215049",
"199745274557593297408432753272386732247",
"230902045640115454232770797597506373102",
"309587746464865152475870012806258110256",
"238715592126928732873319825953422467895"
]
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@ac60778b87e45576d7bfdbd6f53df902654e6f09",
"target": {
"file": "fs/ksmbd/smb2misc.c"
},
"id": "CVE-2022-47943-a56b28e1"
},
{
"digest": {
"length": 3257.0,
"function_hash": "36394757689752003571764129047822822125"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@ac60778b87e45576d7bfdbd6f53df902654e6f09",
"target": {
"file": "fs/ksmbd/smb2pdu.c",
"function": "smb2_write"
},
"id": "CVE-2022-47943-bd05353b"
},
{
"digest": {
"length": 2787.0,
"function_hash": "257317302000794641221621997474151388384"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@ac60778b87e45576d7bfdbd6f53df902654e6f09",
"target": {
"file": "fs/ksmbd/smb2misc.c",
"function": "smb2_get_data_area_len"
},
"id": "CVE-2022-47943-eb7bd51a"
}
]