{"id":"CVE-2022-48770","state":"PUBLISHED","title":"bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()","description":"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.","publishedAt":"2024-06-20T11:13:45.193Z","updatedAt":"2026-05-11T18:46:35.914Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"ff6bdc205fd0a83bd365405d4e31fb5905826996","versionType":"git"},{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"0bcd484587b3b3092e448d27dc369e347e1810c3","versionType":"git"},{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"b82ef4985a6d05e80f604624332430351df7b79a","versionType":"git"},{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"b992f01e66150fc5e90be4a96f5eb8e634c8249e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/stackmap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.96","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.19","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.5","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/stackmap.c"]}],"references":["https://git.kernel.org/stable/c/ff6bdc205fd0a83bd365405d4e31fb5905826996","https://git.kernel.org/stable/c/0bcd484587b3b3092e448d27dc369e347e1810c3","https://git.kernel.org/stable/c/b82ef4985a6d05e80f604624332430351df7b79a","https://git.kernel.org/stable/c/b992f01e66150fc5e90be4a96f5eb8e634c8249e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48770.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48770","state":"PUBLISHED","datePublished":"2024-06-20T11:13:45.193Z","dateUpdated":"2026-05-11T18:46:35.914Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-06-20T11:09:39.061Z"},"containers":{"cna":{"title":"bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"ff6bdc205fd0a83bd365405d4e31fb5905826996","versionType":"git"},{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"0bcd484587b3b3092e448d27dc369e347e1810c3","versionType":"git"},{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"b82ef4985a6d05e80f604624332430351df7b79a","versionType":"git"},{"version":"fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0","status":"affected","lessThan":"b992f01e66150fc5e90be4a96f5eb8e634c8249e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/stackmap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.9","versionType":"semver"},{"version":"5.10.96","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.19","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.5","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/stackmap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ff6bdc205fd0a83bd365405d4e31fb5905826996"},{"url":"https://git.kernel.org/stable/c/0bcd484587b3b3092e448d27dc369e347e1810c3"},{"url":"https://git.kernel.org/stable/c/b82ef4985a6d05e80f604624332430351df7b79a"},{"url":"https://git.kernel.org/stable/c/b992f01e66150fc5e90be4a96f5eb8e634c8249e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:46:35.914Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.10.96"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.15.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.16.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.9","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/ff6bdc205fd0a83bd365405d4e31fb5905826996","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0bcd484587b3b3092e448d27dc369e347e1810c3","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b82ef4985a6d05e80f604624332430351df7b79a","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b992f01e66150fc5e90be4a96f5eb8e634c8249e","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:25:01.559Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48770","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:10:00.483681Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:46.874Z"}}]}}}