CVE-2022-48770

bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()

MEDIUM
5.5
CVSS Score
Published: June 20, 2024 at 11:13 AM UTC
Updated: June 17, 2026 at 05:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.195.16 ≤ v < 5.16.55.9 ≤ v < 5.10.965.9 ≤ v < 5.15.195.9 ≤ v < 5.16.55.9 ≤ v < 5.175.17 rc1fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0
Vendor states this is fixed in 0bcd484587b3b3092e448d27dc369e347e1810c3 (fixed)
Vendor states this is fixed in b82ef4985a6d05e80f604624332430351df7b79a (fixed)
Vendor states this is fixed in b992f01e66150fc5e90be4a96f5eb8e634c8249e (fixed)
Vendor states this is fixed in ff6bdc205fd0a83bd365405d4e31fb5905826996 (fixed)
Vendor states this is fixed in 5.10.96 (unaffected)
Vendor states this is fixed in 5.15.19 (unaffected)
Vendor states this is fixed in 5.16.5 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.9 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0bcd484587b3b3092e448d27dc369e347e1810c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b82ef4985a6d05e80f604624332430351df7b79a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b992f01e66150fc5e90be4a96f5eb8e634c8249e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ff6bdc205fd0a83bd365405d4e31fb5905826996

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card