Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48770
HistoryJun 20, 2024 - 11:13 a.m.

CVE-2022-48770 bpf: Guard against accessing NULL pt_regs in bpf_get_task_stack()

2024-06-2011:13:45
Linux
www.cve.org
2
linux kernel
bpf
vulnerability fix
task_pt_regs
powerpc
kernel oops

0.0004 Low

EPSS

Percentile

15.7%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "kernel/bpf/stackmap.c"
    ],
    "versions": [
      {
        "version": "fa28dcb82a38",
        "lessThan": "ff6bdc205fd0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fa28dcb82a38",
        "lessThan": "0bcd484587b3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fa28dcb82a38",
        "lessThan": "b82ef4985a6d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fa28dcb82a38",
        "lessThan": "b992f01e6615",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "kernel/bpf/stackmap.c"
    ],
    "versions": [
      {
        "version": "5.9",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.9",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.96",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.19",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.5",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2022-48770