2084AI Security Observatory

CVE

CVE-2024-36883

CVE-2024-36883HIGH 7.1EPSS 24%

CNA 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 versions

All Linux kernel vulnerabilities →

  • 6.9-rc7This version only
  • 6.9-rc6This version only
  • 6.9-rc5This version only
  • 6.9-rc4This version only
  • 6.9-rc3This version only
  • 6.9-rc2This version only
  • 6.9-rc1This version only
  • ≥ 6.7, < 6.8.10Fixed in 6.8.10
  • ≥ 6.2, < 6.6.31Fixed in 6.6.31
  • ≥ 5.16, < 6.1.91Fixed in 6.1.91
  • ≥ 5.11, < 5.15.159Fixed in 5.15.159
  • ≥ 5.5, < 5.10.217Fixed in 5.10.217
  • ≥ 4.20, < 5.4.276Fixed in 5.4.276
  • ≥ 3.3.1, < 4.19.314Fixed in 4.19.314
  • 3.3This version only
  • 3.3-rc7This version only
  • 3.3-rc6This version only
  • 3.3-rc5This version only
  • 3.3-rc4This version only
  • 3.3-rc3This version only
  • 3.3-rc2This version only
  • ≥ 3.2.3, < 3.3Fixed in 3.3
  • ≥ 3.0.19, < 3.1Fixed in 3.1

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.