CVE-2022-48770

Source
https://cve.org/CVERecord?id=CVE-2022-48770
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48770.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48770
Downstream
Related
Published
2024-06-20T11:13:45.193Z
Modified
2026-03-20T12:21:50.879361Z
Summary
bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Guard against accessing NULL ptregs in bpfgettaskstack()

taskptregs() can return NULL on powerpc for kernel threads. This is then used in __bpfgetstack() to check for user mode, resulting in a kernel oops. Guard against this by checking return value of taskptregs() before trying to obtain the call chain.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48770.json"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2022-48770.json"