VDB

CVE-2024-36883

CVE-2024-36883 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel-develAmazon Linux4.14.348-265.562.amzn2
kernel-modules-extra-commonAmazon Linux6.1.91-99.172.amzn2023
kernelAmazon Linux4.14.348-265.562.amzn2
kernel-tools-develAmazon Linux6.1.91-99.172.amzn2023
linux_kernellinux6.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

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux073862ba5d249c20bd5c49fc6d904ff0e1f6a672, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672
LinuxLinux3.3, 0, 4.19.314
amazon:2kernel-devel0
amazon:2023kernel-modules-extra-common0
amazon:2kernel0
amazon:2023kernel-tools-devel0
linuxlinux_kernel3.0.19, 3.3, 3.3
amazon:2023kernel-libbpf-devel0
LinuxLinux3.2.3, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672, 073862ba5d249c20bd5c49fc6d904ff0e1f6a672
amazon:2023kernel-livepatch-6.1.91-99.1720
amazon:2023kernel-tools0
amazon:2kernel-livepatch-4.14.348-265.5620
amazon:2023kernel-libbpf-static0
amazon:2perf0
amazon:2023kernel-modules-extra0
amazon:2023bpftool0
amazon:2kernel-tools0
amazon:2python-perf0
amazon:2023kernel0
amazon:2023kernel-libbpf0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›