Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48939
HistoryAug 22, 2024 - 3:31 a.m.

CVE-2022-48939 bpf: Add schedule points in batch ops

2024-08-2203:31:34
Linux
www.cve.org
3
linux kernel
vulnerability
cve-2022-48939
schedule points
bpf batch operations
soft lockups
generic_map_delete_batch
optimization

EPSS

0

Percentile

16.4%

In the Linux kernel, the following vulnerability has been resolved:

bpf: Add schedule points in batch ops

syzbot reported various soft lockups caused by bpf batch operations.

INFO: task kworker/1:1:27 blocked for more than 140 seconds.
INFO: task hung in rcu_barrier

Nothing prevents batch ops to process huge amount of data,
we need to add schedule points in them.

Note that maybe_wait_bpf_programs(map) calls from
generic_map_delete_batch() can be factorized by moving
the call after the loop.

This will be done later in -next tree once we get this fix merged,
unless there is strong opinion doing this optimization sooner.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "kernel/bpf/syscall.c"
    ],
    "versions": [
      {
        "version": "aa2e93b8e58e",
        "lessThan": "7ef94bfb08fb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "aa2e93b8e58e",
        "lessThan": "8628f489b749",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "aa2e93b8e58e",
        "lessThan": "7e8099967d0e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "aa2e93b8e58e",
        "lessThan": "75134f16e7dd",
        "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/syscall.c"
    ],
    "versions": [
      {
        "version": "5.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.103",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.26",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.12",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

16.4%