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.
References (11)
Core 11
Core References
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
Third Party Advisory
https://security.netapp.com/advisory/ntap-20241018-0001/
Scores
CVSS v3
7.1
EPSS
0.0001
EPSS Percentile
0.5%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-125
Status
published
Products (4)
debian/debian_linux
10.0
linux/linux_kernel
3.3 (7 CPE variants)
linux/linux_kernel
6.9 rc1 (7 CPE variants)
linux/linux_kernel
3.0.19 - 3.1
Published
May 30, 2024
Tracked Since
Feb 18, 2026