CVE-2024-46774

Source
https://cve.org/CVERecord?id=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-18T07:12:31.782Z
Modified
2026-03-11T07:51:26.190886Z
Summary
powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()
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 __dosysrtas() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46774.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
d2834ff1d9641a8695a09ea79cd901c7b6d4d05f
Fixed
a262c2dc833f2fe1bd5c53a4d899e7077d3b1da9
Fixed
b137af795399d8b657bad1646c18561530f35ed1
Fixed
1f1feff02e9da0dd0cdb195c428c42b5f9b6c771
Fixed
68d8156480940b79227d58865ec5d2947b9384a8
Fixed
0974d03eb479384466d828d65637814bee6b26d7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-46774.json"