{"id":"CVE-2025-71109","published":"2026-01-14T15:05:57Z","modified":"2026-10-30T12:23:27Z","title":"MIPS: ftrace: Fix memory corruption when kernel is located beyond 32 bits","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: ftrace: Fix memory corruption when kernel is located beyond 32 bits\n\nSince commit e424054000878 (\"MIPS: Tracing: Reduce the overhead of\ndynamic Function Tracer\"), the macro UASM_i_LA_mostly has been used,\nand this macro can generate more than 2 instructions. At the same\ntime, the code in ftrace assumes that no more than 2 instructions can\nbe generated, which is why it stores them in an int[2] array. However,\nas previously noted, the macro UASM_i_LA_mostly (and now UASM_i_LA)\ncauses a buffer overflow when _mcount is beyond 32 bits. This leads to\ncorruption of the variables located in the __read_mostly section.\n\nThis corruption was observed because the variable\n__cpu_primary_thread_mask was corrupted, causing a hang very early\nduring boot.\n\nThis fix prevents the corruption by avoiding the generation of\ninstructions if they could exceed 2 instructions in\nlength. Fortunately, insn_la_mcount is only used if the instrumented\ncode is located outside the kernel code section, so dynamic ftrace can\nstill be used, albeit in a more limited scope. This is still\npreferable to corrupting memory and/or crashing the kernel.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00226,"percentile":0.1338,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3f7a003fe2646337fbc5dd41051ad6754ac34064","tags":[]},{"url":"https://git.kernel.org/stable/c/9cfda98cf02eacfa6b09076e98bd479fd73407c2","tags":[]},{"url":"https://git.kernel.org/stable/c/e3e33ac2eb69d595079a1a1e444c2fb98efdd42d","tags":[]},{"url":"https://git.kernel.org/stable/c/7f39b9d0e86ed6236b9a5fb67616ab1f76c4f150","tags":[]},{"url":"https://git.kernel.org/stable/c/36dac9a3dda1f2bae343191bc16b910c603cac25","tags":[]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.68},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e424054000878d7eb11e44289242886d6e219d22, < 3f7a003fe2646337fbc5dd41051ad6754ac34064",">= e424054000878d7eb11e44289242886d6e219d22, < 9cfda98cf02eacfa6b09076e98bd479fd73407c2",">= e424054000878d7eb11e44289242886d6e219d22, < e3e33ac2eb69d595079a1a1e444c2fb98efdd42d",">= e424054000878d7eb11e44289242886d6e219d22, < 7f39b9d0e86ed6236b9a5fb67616ab1f76c4f150",">= e424054000878d7eb11e44289242886d6e219d22, < 36dac9a3dda1f2bae343191bc16b910c603cac25"]},{"vendor":"Linux","product":"Linux","versions":["2.6.35"]}],"euvd":{"id":"EUVD-2026-2504","exploited":false,"provenance":"source"}}