CVE-2024-36883

High

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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedMay 30, 2024
First seenMay 30, 2024

How to fix

Update
  • linux linux_kernel3.1, 3.3, 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel3.0.19 ≤ v < 3.1, 3.2.3 ≤ v < 3.3, 3.3.1 ≤ v < 4.19.314, 4.20 ≤ v < 5.4.276, 5.5 ≤ v < 5.10.217, 5.11 ≤ v < 5.15.159, 5.16 ≤ v < 6.1.91, 6.2 ≤ v < 6.6.31, 6.7 ≤ v < 6.8.10, 3.3, 6.93.1, 3.3, 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10
debian debian_linux10.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.