CVE-2024-46774

Severity CVSS v4.0:
Pending analysis
Type:
CWE-787 Out-of-bounds Write
Publication date:
18/09/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()<br /> <br /> Smatch warns:<br /> <br /> arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential<br /> spectre issue &amp;#39;args.args&amp;#39; [r] (local cap)<br /> <br /> The &amp;#39;nargs&amp;#39; and &amp;#39;nret&amp;#39; locals come directly from a user-supplied<br /> buffer and are used as indexes into a small stack-based array and as<br /> inputs to copy_to_user() after they are subject to bounds checks.<br /> <br /> Use array_index_nospec() after the bounds checks to clamp these values<br /> for speculative execution.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.10.10 (excluding)