In the Linux kernel, the following vulnerability has been resolved:
aio: Fix null ptr deref in aio_complete() wakeup
listdelinit_careful() needs to be the last access to the wait queue entry - it effectively unlocks access.
Previously, finishwait() would see the empty list head and skip taking the lock, and then we'd return - but the completion path would still attempt to do the wakeup after the taskstruct pointer had been overwritten.
[
{
"signature_type": "Function",
"digest": {
"function_hash": "300340777939787192957916493234304329683",
"length": 1536.0
},
"target": {
"file": "fs/aio.c",
"function": "aio_complete"
},
"signature_version": "v1",
"id": "CVE-2024-35874-4982eaa8",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9678bcc6234d83759fe091c197f5017a32b468da"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"162068230826146941745136126554252750913",
"307016749985481185660609279886405593419",
"338007606400588809143795664300220427419",
"18245544147278178164908975048293501143",
"326670714665633506740094731086070973193"
]
},
"target": {
"file": "fs/aio.c"
},
"signature_version": "v1",
"id": "CVE-2024-35874-80ec5fa6",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9678bcc6234d83759fe091c197f5017a32b468da"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "300340777939787192957916493234304329683",
"length": 1536.0
},
"target": {
"file": "fs/aio.c",
"function": "aio_complete"
},
"signature_version": "v1",
"id": "CVE-2024-35874-8b616b3e",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"162068230826146941745136126554252750913",
"307016749985481185660609279886405593419",
"338007606400588809143795664300220427419",
"18245544147278178164908975048293501143",
"326670714665633506740094731086070973193"
]
},
"target": {
"file": "fs/aio.c"
},
"signature_version": "v1",
"id": "CVE-2024-35874-c08d8226",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd"
}
]