Skip to content
Heist/ feed
High

bpf: Propagate error from htab_lock_bucket() to userspace

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: bpf: Propagate error from htab_lock_bucket() to userspace In __htab_map_lookup_and_delete_batch() if htab_lock_bucket() returns -EBUSY, it will go to next bucket. Going to next bucket may not only skip the elements in current bucket silently, but also incur out-of-bound memory access or expose kernel memory to userspace if current bucket_cnt is greater than bucket_size or zero. Fixing it by stopping batch operation and returning -EBUSY when htab_lock_bucket() fails, and the application can retry or skip the busy batch as needed.

Announced Group revision 1
Original source ↗

CVE-2022-50490

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2022-50490

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
        "lessThan": "0e13425104903970a5ede853082d3bbb4edec6f3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
        "lessThan": "6bfee6eb3d6b96ae730a542909dd22b5f9f50d58",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
        "lessThan": "4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
        "lessThan": "66a7a92e4d0d091e79148a4c6ec15d1da65f4280",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/bpf/hashtab.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.11"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.11",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.75",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "5.19.17",
        "versionType": "semver",
        "lessThanOrEqual": "5.19.*"
      },
      {
        "status": "unaffected",
        "version": "6.0.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.0.*"
      },
      {
        "status": "unaffected",
        "version": "6.1",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/bpf/hashtab.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2022-50490

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30218 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement