CVE-2024-36883: net: fix out-of-bounds access in ops_init
In the Linux kernel, the following vulnerability has been resolved:
net: fix out-of-bounds access in opsinit
netallocgeneric is called by netalloc, which is called without any locking. It reads maxgenptrs, which is changed under pernetopsrwsem. 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 maxgenptrs, which is then used to set s.len with a larger than allocated length for the variable array.
Fix it by reading maxgenptrs only once in netallocgeneric. If maxgenptrs is later incremented, it will be caught in netassigngeneric.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
net: fix out-of-bounds access in opsinit
The Linux kernel CVE team has assigned CVE-2024-36883 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024053032-CVE-2024-36883-b892@gregkh/T
— Red Hat
Linux Kernel is vulnerable to a denial of service, caused by an out-of-bounds access in opsinit. By sending a specially crafted request, a local authenticated attacker could exploit this vulnerability to cause a denial of service.
— IBM
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-36883?
CVE-2024-36883 has been rated as a high severity vulnerability affecting the Linux kernel.
Which Linux kernel versions are affected by CVE-2024-36883?
CVE-2024-36883 affects Linux kernel versions earlier than 4.19.314, 5.4.276, 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10, and 6.9.
How do I fix CVE-2024-36883?
To fix CVE-2024-36883, upgrade your kernel to the patched versions specified in the vulnerability report.
What problem does CVE-2024-36883 cause in the Linux kernel?
CVE-2024-36883 can lead to an out-of-bounds access issue in the network subsystem of the Linux kernel.
Is CVE-2024-36883 related to a particular component in the Linux kernel?
Yes, CVE-2024-36883 is specifically related to the network operations initialization and allocation in the Linux kernel.