CVE-2022-50490 (GCVE-0-2022-50490)
Vulnerability from cvelistv5
Published
2025-10-04 15:43
Modified
2026-10-15 21:41
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: 20b6cc34ea74b6a84599c1f8a70f3315b56a1883
Version: 20b6cc34ea74b6a84599c1f8a70f3315b56a1883
Version: 20b6cc34ea74b6a84599c1f8a70f3315b56a1883
Version: 20b6cc34ea74b6a84599c1f8a70f3315b56a1883
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-50490",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-10-15T21:31:22.465651Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-10-15T21:41:21.599Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/hashtab.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0e13425104903970a5ede853082d3bbb4edec6f3",
              "status": "affected",
              "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
              "versionType": "git"
            },
            {
              "lessThan": "6bfee6eb3d6b96ae730a542909dd22b5f9f50d58",
              "status": "affected",
              "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
              "versionType": "git"
            },
            {
              "lessThan": "4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d",
              "status": "affected",
              "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
              "versionType": "git"
            },
            {
              "lessThan": "66a7a92e4d0d091e79148a4c6ec15d1da65f4280",
              "status": "affected",
              "version": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/hashtab.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.11"
            },
            {
              "lessThan": "5.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.75",
                  "versionStartIncluding": "5.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.17",
                  "versionStartIncluding": "5.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.3",
                  "versionStartIncluding": "5.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Propagate error from htab_lock_bucket() to userspace\n\nIn __htab_map_lookup_and_delete_batch() if htab_lock_bucket() returns\n-EBUSY, it will go to next bucket. Going to next bucket may not only\nskip the elements in current bucket silently, but also incur\nout-of-bound memory access or expose kernel memory to userspace if\ncurrent bucket_cnt is greater than bucket_size or zero.\n\nFixing it by stopping batch operation and returning -EBUSY when\nhtab_lock_bucket() fails, and the application can retry or skip the busy\nbatch as needed."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached only via the bpf(2) syscall batch commands (BPF_MAP_LOOKUP_BATCH / BPF_MAP_LOOKUP_AND_DELETE_BATCH) on a hash map FD, which is a local syscall interface, not network-facing packet processing.\nAC:L - The attacker can drive both sides of the -EBUSY condition by racing map updates against a batch lookup on the same CPU (CONFIG_PREEMPT) or via map reentrancy, and syzkaller produced a reliable C reproducer for the slab-out-of-bounds read.\nPR:L - bpf_map_do_batch only requires a readable hash-map FD; BPF_MAP_TYPE_HASH maps are creatable by unprivileged users when unprivileged BPF is enabled, and map FDs are commonly shared with unprivileged processes, so CAP_SYS_ADMIN/CAP_BPF in the init namespace is not required.\nUI:N - Exploitation needs no victim action beyond the attacker issuing bpf syscalls against a map they can access.\nS:U - Impact stays within the local kernel/host authority; this is not a VM escape, IOMMU bypass, or other cross-boundary compromise.\nC:H - On htab_lock_bucket() -EBUSY, stale bucket_cnt causes copy_to_user of an oversized or never-filled keys/values buffer, yielding a slab out-of-bounds read that exposes adjacent kernel heap (and uninitialized kvmalloc contents) to userspace.\nI:N - The corrupted path only over-reads and copies kernel memory to userspace; the delete/update loops that would modify map state run only after a successful lock, so this bug does not provide a kernel write or control-flow hijack primitive.\nA:H - The OOB read was demonstrated as a KASAN slab-out-of-bounds fault that can panic under panic_on_warn, and a large attacker-controlled over-read can fault/oops the kernel, enabling local denial of service."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:58:56.510Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0e13425104903970a5ede853082d3bbb4edec6f3"
        },
        {
          "url": "https://git.kernel.org/stable/c/6bfee6eb3d6b96ae730a542909dd22b5f9f50d58"
        },
        {
          "url": "https://git.kernel.org/stable/c/4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d"
        },
        {
          "url": "https://git.kernel.org/stable/c/66a7a92e4d0d091e79148a4c6ec15d1da65f4280"
        }
      ],
      "title": "bpf: Propagate error from htab_lock_bucket() to userspace",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50490",
    "datePublished": "2025-10-04T15:43:43.790Z",
    "dateReserved": "2025-10-04T15:39:19.463Z",
    "dateUpdated": "2026-10-15T21:41:21.599Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-50490\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-15T21:31:22.465651Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-10-15T21:31:23.091Z\"}}], \"cna\": {\"title\": \"bpf: Propagate error from htab_lock_bucket() to userspace\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7.1, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The bug is reached only via the bpf(2) syscall batch commands (BPF_MAP_LOOKUP_BATCH / BPF_MAP_LOOKUP_AND_DELETE_BATCH) on a hash map FD, which is a local syscall interface, not network-facing packet processing.\\nAC:L - The attacker can drive both sides of the -EBUSY condition by racing map updates against a batch lookup on the same CPU (CONFIG_PREEMPT) or via map reentrancy, and syzkaller produced a reliable C reproducer for the slab-out-of-bounds read.\\nPR:L - bpf_map_do_batch only requires a readable hash-map FD; BPF_MAP_TYPE_HASH maps are creatable by unprivileged users when unprivileged BPF is enabled, and map FDs are commonly shared with unprivileged processes, so CAP_SYS_ADMIN/CAP_BPF in the init namespace is not required.\\nUI:N - Exploitation needs no victim action beyond the attacker issuing bpf syscalls against a map they can access.\\nS:U - Impact stays within the local kernel/host authority; this is not a VM escape, IOMMU bypass, or other cross-boundary compromise.\\nC:H - On htab_lock_bucket() -EBUSY, stale bucket_cnt causes copy_to_user of an oversized or never-filled keys/values buffer, yielding a slab out-of-bounds read that exposes adjacent kernel heap (and uninitialized kvmalloc contents) to userspace.\\nI:N - The corrupted path only over-reads and copies kernel memory to userspace; the delete/update loops that would modify map state run only after a successful lock, so this bug does not provide a kernel write or control-flow hijack primitive.\\nA:H - The OOB read was demonstrated as a KASAN slab-out-of-bounds fault that can panic under panic_on_warn, and a large attacker-controlled over-read can fault/oops the kernel, enabling local denial of service.\"}]}], \"affected\": [{\"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\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/0e13425104903970a5ede853082d3bbb4edec6f3\"}, {\"url\": \"https://git.kernel.org/stable/c/6bfee6eb3d6b96ae730a542909dd22b5f9f50d58\"}, {\"url\": \"https://git.kernel.org/stable/c/4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d\"}, {\"url\": \"https://git.kernel.org/stable/c/66a7a92e4d0d091e79148a4c6ec15d1da65f4280\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nbpf: Propagate error from htab_lock_bucket() to userspace\\n\\nIn __htab_map_lookup_and_delete_batch() if htab_lock_bucket() returns\\n-EBUSY, it will go to next bucket. Going to next bucket may not only\\nskip the elements in current bucket silently, but also incur\\nout-of-bound memory access or expose kernel memory to userspace if\\ncurrent bucket_cnt is greater than bucket_size or zero.\\n\\nFixing it by stopping batch operation and returning -EBUSY when\\nhtab_lock_bucket() fails, and the application can retry or skip the busy\\nbatch as needed.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.75\", \"versionStartIncluding\": \"5.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.19.17\", \"versionStartIncluding\": \"5.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.0.3\", \"versionStartIncluding\": \"5.11\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1\", \"versionStartIncluding\": \"5.11\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T08:58:56.510Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-50490\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-15T21:41:21.599Z\", \"dateReserved\": \"2025-10-04T15:39:19.463Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-10-04T15:43:43.790Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…