{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50490","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-10-04T15:39:19.463Z","datePublished":"2025-10-04T15:43:43.790Z","dateUpdated":"2026-08-05T08:58:56.510Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T08:58:56.510Z"},"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":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/hashtab.c"],"versions":[{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","lessThan":"0e13425104903970a5ede853082d3bbb4edec6f3","status":"affected","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","lessThan":"6bfee6eb3d6b96ae730a542909dd22b5f9f50d58","status":"affected","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","lessThan":"4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d","status":"affected","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","lessThan":"66a7a92e4d0d091e79148a4c6ec15d1da65f4280","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/hashtab.c"],"versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"5.15.75","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.19.17","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0.3","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.19.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.0.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1"}]}]}],"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"}}}}