CVEvulnerability

CVE-2024-36883

7.1 HIGH Published 2024-05-30 Modified 2026-08-04 Official page ↗
Status
Modified
Published
2024-05-30
Last modified
2026-08-04
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1 ([email protected])
7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-125

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.

Affected configurations

• linux linux kernel (>= 3.0.19 < 3.1) • linux linux kernel (>= 3.2.3 < 3.3) • linux linux kernel (>= 3.3.1 < 4.19.314) • linux linux kernel (>= 4.20 < 5.4.276) • linux linux kernel (>= 5.5 < 5.10.217) • linux linux kernel (>= 5.11 < 5.15.159) • linux linux kernel (>= 5.16 < 6.1.91) • linux linux kernel (>= 6.2 < 6.6.31) • linux linux kernel (>= 6.7 < 6.8.10) • linux linux kernel 3.3 • linux linux kernel 6.9 • debian debian linux 10.0

Related

Weakness · CWE (1)

  • CWE-125 Out-of-bounds Read weakness

References