CVE-2024-36883
net: fix out-of-bounds access in ops_init
Reported by linux · Published May 30, 2024
In the Linux kernel, the following vulnerability has been resolved: net: fix out-of-bounds access in ops_init net_alloc_generic is called by net_alloc, which is called without any locking. It reads max_gen_ptrs, which is changed under pernet_ops_rwsem. It is read twice, first to allocate an array, then to set s.len, which is later used to limit the bounds of the array access. It is possible that the array is allocated and another thread is registering a new pernet ops, increments max_gen_ptrs, which is then used to set s.len with a larger than allocated length for the variable array. Fix it by reading max_gen_ptrs only once in net_alloc_generic. If max_gen_ptrs is later incremented, it will be caught in net_assign_generic.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-devel | Amazon Linux | 4.14.348-265.562.amzn2 |
| kernel-modules-extra-common | Amazon Linux | 6.1.91-99.172.amzn2023 |
| kernel | Amazon Linux | 4.14.348-265.562.amzn2 |
| kernel-tools-devel | Amazon Linux | 6.1.91-99.172.amzn2023 |
| linux_kernel | linux | 6.8.10, 6.6.31, 6.1.91, 5.15.159, 5.10.217, 5.4.276, 4.19.314, 3.3, 3.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 073862ba5d249c20bd5c49fc6d904ff0e1f6a672, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672 |
| Linux | Linux | 3.3, 0, 4.19.314 |
| amazon:2 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2 | kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| linux | linux_kernel | 3.0.19, 3.3, 3.3 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| Linux | Linux | 3.2.3, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672 |
| amazon:2023 | kernel-livepatch-6.1.91-99.172 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2 | kernel-livepatch-4.14.348-265.562 | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2 | perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
…and 6 more
Timeline
- May 30, 2024 CVE Published
- May 31, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 9, 2026 Security Advisory (339 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (243 in total, the first dated here)
- Aug 5, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-36883
vulnetix vdb fixes CVE-2024-36883
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-36883/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart