Junglewise Threat Intelligence

CVE-2024-42292: Linux Kernel out-of-bounds access in kobject_uevent

CVE-2024-42292 · Severity: high · CVSS 7.1 · Published 2024-08-17

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's device event handling system could allow a local user to cause a system crash or potentially access sensitive memory. The issue occurs when the kernel processes specific hardware-related messages, leading to an out-of-bounds memory access. This could impact system stability and data confidentiality on affected Linux-based servers and workstations.

Technical details

An out-of-bounds (OOB) read/access vulnerability exists in the Linux kernel's 'zap_modalias_env' function within 'lib/kobject_uevent.c'. The root cause is an incorrect calculation of the memory block size during a 'memmove' operation when the 'MODALIAS' variable is not the last element in the environment parameter. A local attacker with low privileges could exploit this to trigger an OOB access, potentially leading to a denial of service (system crash) or information disclosure. The vulnerability has been addressed in multiple stable kernel branches by correcting the size calculation passed to 'memmove'.

Affected products

  • Linux Linux Kernel 4.15 to 4.19.319, 4.20 to 5.4.281, 5.5 to 5.10.223, 5.11 to 5.15.164, 5.16 to 6.1.102, 6.2 to 6.6.43, 6.7 to 6.10.2

Timeline

  • 2024-05-30: other: Initial patch authored
  • 2024-08-17: disclosed: CVE published
  • 2024-08-19: patched: Patches applied to stable kernel trees

References

Related threats