{"schema":"threatline.record/2","record":{"id":"CVE-2026-98058","aliases":[],"summary":"bpf: Mark syscall helpers as sleepable","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Mark syscall helpers as sleepable\n\nbpf_sys_bpf() executes the bpf(2) syscall body, which can take mutexes,\nallocate with GFP_KERNEL, and wait for an RCU grace period.\nbpf_sys_close() reaches close_fd() and filp_close(), which can sleep as\nwell.\n\nBoth helpers are limited to BPF_PROG_TYPE_SYSCALL, whose main program is\nsleepable. That does not make every callback sleepable: a syscall program\ncan register a bpf_timer callback, and the verifier checks that callback\nin a non-sleepable context while retaining the syscall helper set.\n\nWithout .might_sleep on the prototypes, such a callback can invoke\nbpf_sys_bpf() from hrtimer softirq context and trigger a\nscheduling-while-atomic failure. bpf_sys_close() is exposed through the\nsame missing context check.\n\nSet .might_sleep on both prototypes so the existing helper-context check\nrejects them from timer callbacks and other atomic regions. Calls from the\nsleepable main body remain valid.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98058","source_modified_at":"2026-10-21T12:54:19.435Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"79a7f8bdb159d9914b58740f3d31d602a6e4aca8","lessThan":"9496d857205e60241034b798d7745ff8830ba599","status":"affected","versionType":"git"},{"version":"79a7f8bdb159d9914b58740f3d31d602a6e4aca8","lessThan":"d8cfe9f71d302970ae393616960f2b3021d2b3b0","status":"affected","versionType":"git"},{"version":"79a7f8bdb159d9914b58740f3d31d602a6e4aca8","lessThan":"65f636322ac402add6046c68e9ece77b9ffd71c9","status":"affected","versionType":"git"},{"version":"79a7f8bdb159d9914b58740f3d31d602a6e4aca8","lessThan":"3408e98f06ce06ea6a58ca6c39da9c23f0029c06","status":"affected","versionType":"git"},{"version":"79a7f8bdb159d9914b58740f3d31d602a6e4aca8","lessThan":"d05524794240b52fdc3b6c1220dd05505715824d","status":"affected","versionType":"git"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98058","source_modified_at":"2026-10-21T12:54:19.435Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.57","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.7","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98058","source_modified_at":"2026-10-21T12:54:19.435Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"9496d857205e60241034b798d7745ff8830ba599","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98058","source_modified_at":"2026-10-21T12:54:19.435Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"65f636322ac402add6046c68e9ece77b9ffd71c9","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98058","source_modified_at":"2026-10-21T12:54:19.435Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"3408e98f06ce06ea6a58ca6c39da9c23f0029c06","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.00168,"percentile":0.05746,"score_date":"2026-10-23"},"published_at":"2026-09-25T10:24:04.190Z","modified_at":"2026-10-21T12:54:19.435Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98058","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-21T12:54:19.435Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-98058","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/9496d857205e60241034b798d7745ff8830ba599"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/d8cfe9f71d302970ae393616960f2b3021d2b3b0"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/65f636322ac402add6046c68e9ece77b9ffd71c9"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/3408e98f06ce06ea6a58ca6c39da9c23f0029c06"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/d05524794240b52fdc3b6c1220dd05505715824d"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-21T12:54:19.435Z","content_hash":"873b51d7af0b30b18eca9b9d0001f15aedf53f84c3ebb9cb01dc77e8c786f85e"}}
