CVE-2024-36883 net: fix out-of-bounds access in ops_init
A race condition in the Linux kernel network subsystem allows out-of-bounds access, potentially leading to denial of service or code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-36883?
CVE-2024-36883 is a high-severity vulnerability in Debian Debian Linux, published on 30 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2024-36883?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-36883?
Apply the vendor's patch.
Is CVE-2024-36883 being exploited?
There is no known exploitation of CVE-2024-36883 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-36883, DEBIAN-CVE-2024-36883, UBUNTU-CVE-2024-36883.