{"id":"CVE-2022-48770","summary":"bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()\n\ntask_pt_regs() can return NULL on powerpc for kernel threads. This is\nthen used in __bpf_get_stack() to check for user mode, resulting in a\nkernel oops. Guard against this by checking return value of\ntask_pt_regs() before trying to obtain the call chain.","modified":"2026-04-02T08:26:59.554055Z","published":"2024-06-20T11:13:45.193Z","related":["SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2939-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48770.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0bcd484587b3b3092e448d27dc369e347e1810c3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b82ef4985a6d05e80f604624332430351df7b79a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b992f01e66150fc5e90be4a96f5eb8e634c8249e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff6bdc205fd0a83bd365405d4e31fb5905826996"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48770.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-48770"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0"},{"fixed":"ff6bdc205fd0a83bd365405d4e31fb5905826996"},{"fixed":"0bcd484587b3b3092e448d27dc369e347e1810c3"},{"fixed":"b82ef4985a6d05e80f604624332430351df7b79a"},{"fixed":"b992f01e66150fc5e90be4a96f5eb8e634c8249e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48770.json"}}],"schema_version":"1.7.5"}