{"id":"CVE-2025-37898","published":"2025-05-20T15:21:34Z","modified":"2026-05-11T21:17:15Z","title":"powerpc64/ftrace: fix module loading without patchable function entries","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc64/ftrace: fix module loading without patchable function entries\n\nget_stubs_size assumes that there must always be at least one patchable\nfunction entry, which is not always the case (modules that export data\nbut no code), otherwise it returns -ENOEXEC and thus the section header\nsh_size is set to that value. During module_memory_alloc() the size is\npassed to execmem_alloc() after being page-aligned and thus set to zero\nwhich will cause it to fail the allocation (and thus module loading) as\n__vmalloc_node_range() checks for zero-sized allocs and returns null:\n\n[  115.466896] module_64: cast_common: doesn't contain __patchable_function_entries.\n[  115.469189] ------------[ cut here ]------------\n[  115.469496] WARNING: CPU: 0 PID: 274 at mm/vmalloc.c:3778 __vmalloc_node_range_noprof+0x8b4/0x8f0\n...\n[  115.478574] ---[ end trace 0000000000000000 ]---\n[  115.479545] execmem: unable to allocate memory\n\nFix this by removing the check completely, since it is anyway not\nhelpful to propagate this as an error upwards.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00173,"percentile":0.06689,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/358b559afec7806b9d01c2405b490e782c347022","tags":[]},{"url":"https://git.kernel.org/stable/c/534f5a8ba27863141e29766467a3e1f61bcb47ac","tags":[]}],"priority":{"score":1.3,"factors":[{"name":"EPSS percentile","points":1.34}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= eec37961a56aa4f3fe1c33ffd48eec7d1bb0c009, < 358b559afec7806b9d01c2405b490e782c347022",">= eec37961a56aa4f3fe1c33ffd48eec7d1bb0c009, < 534f5a8ba27863141e29766467a3e1f61bcb47ac"]},{"vendor":"Linux","product":"Linux","versions":["6.13"]}],"euvd":{"id":"EUVD-2025-15933","exploited":false,"provenance":"source"}}