CVE-2024-46774·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.10.10
- Published
- 2024-09-18
Affected versions
Until: 6.10.10
Fixed in: 6.10.10
How to fix this CVE
Update your Linux kernel to version 6.10.10 or later to patch the Spectre v1 gadget vulnerability in the RTAS system call handler. This vulnerability allows local attackers to bypass speculative execution protections through improper array index validation. Apply the kernel update immediately across all affected PowerPC systems in your infrastructure.
sudo dnf update kernel kernel-headers kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r | awk -F'.' '{print $1"."$2"."$3}'
- Verify if PowerPC RTAS is enabled: cat /proc/cmdline | grep -i rtas
- Search for RTAS system call activity in audit logs: ausearch -m syscall -F syscall=255 2>/dev/null | head -20
- Confirm the patched kernel is running: grep -i 'array_index_nospec' /boot/config-$(uname -r) || echo 'Kernel config not accessible - verify via package manager'
- Verify kernel package version post-update: dpkg -l | grep linux-image (Debian/Ubuntu) or rpm -q kernel (RHEL/CentOS)
FAQ
What is CVE-2024-46774?
CVE-2024-46774 is a Spectre v1 gadget construction vulnerability in the Linux kernel's PowerPC RTAS system call handler (sys_rtas). An unprivileged local attacker can exploit improper array index validation to perform speculative execution attacks that leak kernel memory or bypass security boundaries.
Is CVE-2024-46774 being actively exploited?
No, there is no evidence of active exploitation in the wild, and CVE-2024-46774 is not listed on the CISA Known Exploited Vulnerabilities catalog. However, proof-of-concept exploits may exist in research communities given its Spectre-class nature.
What versions of Kernel are affected by CVE-2024-46774?
All Linux kernel versions prior to 6.10.10 on PowerPC architecture are vulnerable. The vulnerability exists in the arch/powerpc/kernel/rtas.c file where user-supplied 'nargs' and 'nret' values bypass speculative execution clamping.
How do I check if my server is vulnerable to CVE-2024-46774?
Run `uname -r` and compare the version string against 6.10.10 (if your version is lower, you are affected). For PowerPC systems, additionally verify RTAS is present via `grep -i rtas /proc/cmdline` and check your distribution's kernel package version with `dpkg -l | grep linux-image` (Debian) or `rpm -qa kernel` (RHEL).
Does Defensia detect CVE-2024-46774?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-46774 will appear in your dashboard with remediation steps and update commands tailored to your Linux distribution.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0974d03eb479384466d828d65637814bee6b26d7
- https://git.kernel.org/stable/c/1f1feff02e9da0dd0cdb195c428c42b5f9b6c771
- https://git.kernel.org/stable/c/68d8156480940b79227d58865ec5d2947b9384a8
- https://git.kernel.org/stable/c/a262c2dc833f2fe1bd5c53a4d899e7077d3b1da9
- https://git.kernel.org/stable/c/b137af795399d8b657bad1646c18561530f35ed1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-46774. Free for 1 server.
Get started free