bpf: Propagate error from htab_lock_bucket() to userspace
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.75, 5.19.17, 6.0.3
- CVEs
- CVE-2022-50490
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:44 UTC · Revision 1
Source evidence
bpf: Propagate error from htab_lock_bucket() to userspace
core-osv · Original sourcePublished 4 Oct 2025, 15:43 UTC
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.
osv:CVE-2022-50490
Kernel
Fixed versions: 5.15.75, 5.19.17, 6.0.3
Complete source record
{
"id": "70a52c32686913a15547b6879fba179e2b81b7970508f45be8807a648094213d",
"url": "https://osv.dev/vulnerability/CVE-2022-50490",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bpf: Propagate error from htab_lock_bucket() to userspace",
"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.",
"evidence": "osv:CVE-2022-50490",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.75",
"evidence": "/affected/1/ranges"
},
{
"value": "5.19.17",
"evidence": "/affected/1/ranges"
},
{
"value": "6.0.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2022-50490",
"aliases": [
"CVE-2022-50490"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "20b6cc34ea74b6a84599c1f8a70f3315b56a1883"
},
{
"fixed": "0e13425104903970a5ede853082d3bbb4edec6f3"
},
{
"fixed": "6bfee6eb3d6b96ae730a542909dd22b5f9f50d58"
},
{
"fixed": "4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d"
},
{
"fixed": "66a7a92e4d0d091e79148a4c6ec15d1da65f4280"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50490.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.75"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "5.19.17"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.20.0"
},
{
"fixed": "6.0.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50490.json"
}
}
],
"modified": "2026-10-28T02:30:33.050662845Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0e13425104903970a5ede853082d3bbb4edec6f3",
"https://git.kernel.org/stable/c/4f1f39a8f1ce1b24fee6852d7dcd704ce7c4334d",
"https://git.kernel.org/stable/c/66a7a92e4d0d091e79148a4c6ec15d1da65f4280",
"https://git.kernel.org/stable/c/6bfee6eb3d6b96ae730a542909dd22b5f9f50d58",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50490.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-50490",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50490.json"
}
},
"related_cves": [
{
"value": "CVE-2022-50490",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499782,
"published_at": "2025-10-04T15:43:43.79+00:00"
}