bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()
In the Linux kernel, the following vulnerability has been resolved: bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack() task_pt_regs() can return NULL on powerpc for kernel threads. This is then used in __bpf_get_stack() to check for user mode, resulting in a kernel oops. Guard against this by checking return value of task_pt_regs() before trying to obtain the call chain.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.96, 5.15.19, 5.16.5
- CVEs
- CVE-2022-48770
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 19:53 UTC · Revision 1
Source evidence
bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()
core-osv · Original sourcePublished 20 Jun 2024, 11:13 UTC
In the Linux kernel, the following vulnerability has been resolved: bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack() task_pt_regs() can return NULL on powerpc for kernel threads. This is then used in __bpf_get_stack() to check for user mode, resulting in a kernel oops. Guard against this by checking return value of task_pt_regs() before trying to obtain the call chain.
osv:CVE-2022-48770
Kernel
Fixed versions: 5.10.96, 5.15.19, 5.16.5
Complete source record
{
"id": "fde5bddfda603851e5b95b5e29306f087dc722f6d7dc44e8a9a2542942c27740",
"url": "https://osv.dev/vulnerability/CVE-2022-48770",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack() task_pt_regs() can return NULL on powerpc for kernel threads. This is then used in __bpf_get_stack() to check for user mode, resulting in a kernel oops. Guard against this by checking return value of task_pt_regs() before trying to obtain the call chain.",
"evidence": "osv:CVE-2022-48770",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.96",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.19",
"evidence": "/affected/1/ranges"
},
{
"value": "5.16.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2022-48770",
"aliases": [
"CVE-2022-48770"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.9.0"
},
{
"fixed": "5.10.96"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.19"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.16.5"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48770.json"
}
}
],
"modified": "2026-10-28T02:30:31.915720702Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0bcd484587b3b3092e448d27dc369e347e1810c3",
"https://git.kernel.org/stable/c/b82ef4985a6d05e80f604624332430351df7b79a",
"https://git.kernel.org/stable/c/b992f01e66150fc5e90be4a96f5eb8e634c8249e",
"https://git.kernel.org/stable/c/ff6bdc205fd0a83bd365405d4e31fb5905826996",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48770.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-48770",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/48xxx/CVE-2022-48770.json"
}
},
"related_cves": [
{
"value": "CVE-2022-48770",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 498828,
"published_at": "2024-06-20T11:13:45.193+00:00"
}