Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2022-48770
HistoryJun 20, 2024 - 12:15 p.m.

CVE-2022-48770

2024-06-2012:15:14
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
19
bpf
guard
null pt_regs
powerpc
kernel threads
oops
call chain
cve

6.3 Medium

AI Score

Confidence

Low

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.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.95.10.96
OR
linuxlinux_kernelRange5.11.05.15.19
OR
linuxlinux_kernelRange5.16.05.16.5
OR
linuxlinux_kernelRange5.17.0

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"
      }
    ]
  }
]

6.3 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%