{"id":"CVE-2026-98059","aliases":["CVE-2026-98059"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Mark sched_process_wait argument as nullable","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Mark sched_process_wait argument as nullable\n\ndo_wait() passes wo->wo_pid to the sched_process_wait tracepoint.\nkernel_wait4() leaves wo_pid NULL for wait4(-1), and\nkernel_waitid_prepare() does likewise for waitid(P_ALL).\n\nbtf_ctx_access() currently types argument 0 as PTR_TO_BTF_ID |\nPTR_TRUSTED. Without PTR_MAYBE_NULL, the verifier accepts an unchecked\ndereference. Trusted pointer loads have no fault protection, so a wait for\nany child can then cause a NULL pointer dereference in JITed BPF code.\n\nAdd sched_process_wait to raw_tp_null_args[] with argument 0 marked\nnullable. The verifier rejects an unchecked dereference while preserving\naccess after the program checks the pointer for NULL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Mark sched_process_wait argument as nullable\n\ndo_wait() passes wo->wo_pid to the sched_process_wait tracepoint.\nkernel_wait4() leaves wo_pid NULL for wait4(-1), and\nkernel_waitid_prepare() does likewise for waitid(P_ALL).\n\nbtf_ctx_access() currently types argument 0 as PTR_TO_BTF_ID |\nPTR_TRUSTED. Without PTR_MAYBE_NULL, the verifier accepts an unchecked\ndereference. Trusted pointer loads have no fault protection, so a wait for\nany child can then cause a NULL pointer dereference in JITed BPF code.\n\nAdd sched_process_wait to raw_tp_null_args[] with argument 0 marked\nnullable. The verifier rejects an unchecked dereference while preserving\naccess after the program checks the pointer for NULL.","source":"cvelist"}],"published":"2026-09-25T10:24:04.788Z","modified":"2026-10-29T17:56:57.930Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"b2fc4b17fc13810ef440fb323fad3981cd174985","fixed":"bee862c79cb7e0e5c33b2df2e3a31d164705120d","status":"affected"},{"type":"git","introduced":"838a10bd2ebfe11a60dd67687533a7cfc220cc86","fixed":"3c03a1b8ded858685a73c1ba4080adef99db4544","status":"affected"},{"type":"git","introduced":"838a10bd2ebfe11a60dd67687533a7cfc220cc86","fixed":"b9205e936dde9a94e93376c8de6195b740bcd5d2","status":"affected"},{"type":"git","introduced":"838a10bd2ebfe11a60dd67687533a7cfc220cc86","fixed":"a453d6e3b8e8e1a321c8744d6189d763af9287d0","status":"affected"},{"type":"semver","introduced":"6.12.6","fixed":"6.12.111","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.6","fixed":"6.12.111"},{"status":"affected","introduced":"6.13.1","fixed":"6.18.53"},{"status":"affected","introduced":"6.19","fixed":"7.2.7"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"6.13"},{"status":"affected","version":"7.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bee862c79cb7e0e5c33b2df2e3a31d164705120d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c03a1b8ded858685a73c1ba4080adef99db4544","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9205e936dde9a94e93376c8de6195b740bcd5d2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a453d6e3b8e8e1a321c8744d6189d763af9287d0","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98059","url":"https://www.cve.org/CVERecord?id=CVE-2026-98059","licence":"CVE Terms of Use","modified":"2026-10-19T09:13:06.971Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98059","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98059","licence":"Public domain","modified":"2026-10-29T17:56:57.930Z"}],"updatedAt":"2026-11-25T22:59:41.040Z","epss":{"score":0.00122,"percentile":0.02189,"date":"2026-12-01T12:00:22.000Z"}}