CVE-2024-41032

mm: vmalloc: check if a hash-index is in cpu_possible_mask

State
Published
Severity
7.8 High
Published
Jul 29, 2024
Updated
Aug 5, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

mm: vmalloc: check if a hash-index is in cpu_possible_mask

The problem is that there are systems where cpu_possible_mask has gaps between set CPUs, for example SPARC. In this scenario addr_to_vb_xa() hash function can return an index which accesses to not-possible and not setup CPU area using per_cpu() macro. This results in an oops on SPARC.

A per-cpu vmap_block_queue is also used as hash table, incorrectly assuming the cpu_possible_mask has no gaps. Fix it by adjusting an index to a next possible CPU.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 062eacf57ad91b5c272f89dc964fd6dd9715ea7d to before 28acd531c9a365dac01b32e6bc54aed8c1429bcbAffected
  • 062eacf57ad91b5c272f89dc964fd6dd9715ea7d to before 47f9b6e49b422392fb0e348a65eb925103ba1882Affected
  • 062eacf57ad91b5c272f89dc964fd6dd9715ea7d to before a34acf30b19bc4ee3ba2f1082756ea2604c19138Affected
LinuxLinux
  • 6.4Affected
  • before 6.4Not affected
  • 6.6.41 through 6.6.*Not affected
  • 6.9.10 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.