Bug 2313122 (CVE-2024-46774) - CVE-2024-46774 kernel: powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()
Summary: CVE-2024-46774 kernel: powerpc/rtas: Prevent Spectre v1 gadget construction i...
Keywords:
Status: NEW
Alias: CVE-2024-46774
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2313229
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-18 08:22 UTC by OSIDB Bzimport
Modified: 2024-09-18 11:47 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-18 08:22:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.