PT-2024-4100 · Linux+9 · Linux Kernel+9
Thadeu Lima De Souza Cascardo
·
Published
2024-05-06
·
Updated
2026-01-22
·
CVE-2024-36883
CVSS v3.1
7.1
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
The issue is related to an out-of-bounds access in the
net alloc generic() function in the Linux kernel. This function is called by net alloc() without any locking, and it reads max gen ptrs, which is changed under pernet ops rwsem. The function reads max gen ptrs twice, first to allocate an array and 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. This could allow an attacker to impact the confidentiality, integrity, and availability of protected information.Recommendations
To resolve the issue, read
max gen ptrs only once in net alloc generic(). If max gen ptrs is later incremented, it will be caught in net assign generic(). As a temporary workaround, consider restricting access to the vulnerable net alloc generic() function until a patch is available.Exploit
Fix
DoS
Out of bounds Read
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Almalinux
Astra Linux
Centos
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu