Lucene search

K
ubuntucveUbuntu.comUB:CVE-2024-36883
HistoryMay 30, 2024 - 12:00 a.m.

CVE-2024-36883

2024-05-3000:00:00
ubuntu.com
ubuntu.com
7
linux kernel
vulnerability
net
out-of-bounds access
ops_init
net_alloc_generic
pernet_ops_rwsem
array
thread
fix

AI Score

8.4

Confidence

High

EPSS

0

Percentile

13.0%

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.