CVE Catalog

CVE-2024-36883

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.31%

23th percentile - higher than 23% of all known CVEs

Summary

In the Linux kernel, an out-of-bounds access vulnerability was found in the ops_init function. The issue arises from reading max_gen_ptrs twice without proper locking, potentially leading to a smaller allocated array than later used.

Risk Assessment

The vulnerability could lead to memory corruption, system crashes, or potentially privilege escalation if an attacker can influence pernet ops registration.

Recommendation

It is recommended to update the Linux kernel to a version containing the fix that reads max_gen_ptrs only once in net_alloc_generic to avoid inconsistency.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS