NULL pointer dereference in Linux

CVE-2022-48770

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.002, 12.1th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions fa28dcb82a38f8e3993b0fae9106b1a80b59e4f0, 5.9, 0
  • Linux Kernel — versions 5.17

Weakness classification (CWE)

References