CVE-2024-36883

net: fix out-of-bounds access in ops_init

HIGH
7.1
CVSS Score
Published: May 30, 2024 at 03:28 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 3.0.19v ≥ 3.2.33.0.19 ≤ v < 3.13.2.3 ≤ v < 3.33.3 ≤ v < 4.19.3143.3 ≤ v < 5.10.2173.3 ≤ v < 5.15.1593.3 ≤ v < 5.4.2763.3 ≤ v < 6.1.913.3 ≤ v < 6.6.313.3 ≤ v < 6.8.103.3 ≤ v < 6.93.3.1 ≤ v < 4.19.3144.20 ≤ v < 5.4.2765.11 ≤ v < 5.15.1595.16 ≤ v < 6.1.915.5 ≤ v < 5.10.2176.2 ≤ v < 6.6.316.7 ≤ v < 6.8.103.0.193.2.33.33.3 rc23.3 rc33.3 rc43.3 rc53.3 rc63.3 rc7561331eae0a03d0c4cf60f3cf485aa3e8aa5ab486.9 rc16.9 rc26.9 rc36.9 rc46.9 rc56.9 rc66.9 rc773862ba5d249c20bd5c49fc6d904ff0e1f6a672a2c82f7bee1ffa9eafa1fb0bd886a7eea8c9e497
Vendor states this is fixed in 0c3248bc708a7797be573214065cf908ff1f54c7 (fixed)
Vendor states this is fixed in 2d60ff5874aefd006717ca5e22ac1e25eac29c42 (fixed)
Vendor states this is fixed in 3cdc34d76c4f777579e28ad373979d36c030cfd3 (fixed)
Vendor states this is fixed in 7b0e64583eab8c1d896b47e5dd0bf2e7d86ec41f (fixed)
Vendor states this is fixed in 9518b79bfd2fbf99fa9b7e8e36bcb1825e7ba030 (fixed)
Vendor states this is fixed in a26ff37e624d12e28077e5b24d2b264f62764ad6 (fixed)
Vendor states this is fixed in b6dbfd5bcc267a95a0bf1bf96af46243f96ec6cd (fixed)
Vendor states this is fixed in f4f94587e1bf87cb40ec33955a9d90148dd026ab (fixed)
Affected range stops below 3.1, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 3.3 (unaffected)
Vendor states this is fixed in 4.19.314 (unaffected)
Vendor states this is fixed in 5.10.217 (unaffected)
Vendor states this is fixed in 5.15.159 (unaffected)
Vendor states this is fixed in 5.4.276 (unaffected)
Vendor states this is fixed in 6.1.91 (unaffected)
Vendor states this is fixed in 6.6.31 (unaffected)
Vendor states this is fixed in 6.8.10 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0c3248bc708a7797be573214065cf908ff1f54c7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d60ff5874aefd006717ca5e22ac1e25eac29c42
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3cdc34d76c4f777579e28ad373979d36c030cfd3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7b0e64583eab8c1d896b47e5dd0bf2e7d86ec41f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9518b79bfd2fbf99fa9b7e8e36bcb1825e7ba030
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a26ff37e624d12e28077e5b24d2b264f62764ad6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b6dbfd5bcc267a95a0bf1bf96af46243f96ec6cd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f4f94587e1bf87cb40ec33955a9d90148dd026ab

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card