CVE-2024-46774

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-46774
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46774.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-46774
Downstream
Related
Published
2024-09-18T08:15:05Z
Modified
2025-08-09T20:01:27Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
[none]
Details

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 _dosys_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 copytouser() after they are subject to bounds checks.

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

References

Affected packages