Junglewise Threat Intelligence

CVE-2024-42094: Linux Kernel stack overflow in net/iucv

CVE-2024-42094 · Severity: high · CVSS 7.1 · Published 2024-07-29

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking component for IBM Z systems (IUCV) could allow a local user to cause a system crash or potentially access sensitive information. The issue stems from how the system manages processor information in memory, which can lead to a stack overflow under specific configurations. This could impact the stability and availability of servers running affected Linux distributions.

Technical details

A vulnerability exists in the net/iucv component of the Linux kernel where cpumask variables are explicitly allocated on the stack. In kernel configurations where CONFIG_CPUMASK_OFFSTACK=y, these structures can be large enough to trigger a stack overflow. An attacker with local access could exploit this behavior to cause a denial of service (system crash) or potentially achieve out-of-bounds memory access. The fix replaces explicit stack allocation with the *cpumask_var API family, which ensures memory is allocated safely according to the kernel configuration. Patches have been released across multiple stable kernel branches.

Affected products

  • Linux Linux Kernel up to 4.19.317, 4.20 to 5.4.279, 5.5 to 5.10.221, 5.11 to 5.15.162, 5.16 to 6.1.97, 6.2 to 6.6.37, 6.7 to 6.9.8

Timeline

  • 2024-03-31: other: Initial patch submitted by developer
  • 2024-07-05: patched: Patches committed to stable kernel trees
  • 2024-07-29: disclosed: CVE published

References

Related threats