CVE-2024-46774 powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

High 7.1 Published Updated

Attackers can exploit speculative execution flaws in the Linux kernel's RTAS interface to potentially leak sensitive memory contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-46774?

CVE-2024-46774 is a high-severity vulnerability in Linux kernel, published on 18 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()

Smatch warns:

arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential spectre issue 'args.args' [r] (local cap)

The 'nargs' and 'nret' locals come directly from a user-supplied buffer and are used as indexes into a small stack-based array and as inputs to copy_to_user() after they are subject to bounds checks.

Use array_index_nospec() after the bounds checks to clamp these values for speculative execution.

Weakness: CWE-787

Which versions are affected by CVE-2024-46774?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46774?

Apply the vendor's patch.

Is CVE-2024-46774 being exploited?

There is no known exploitation of CVE-2024-46774 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-46774, DEBIAN-CVE-2024-46774, GHSA-6qfm-4c78-cfqr, ROOT-OS-DEBIAN-11-CVE-2024-46774, ROOT-OS-UBUNTU-2204-CVE-2024-46774, UBUNTU-CVE-2024-46774.

Is CVE-2024-46774 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free