{"id":"CVE-2024-46774","summary":"powerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/rtas: Prevent Spectre v1 gadget construction in sys_rtas()\n\nSmatch warns:\n\n  arch/powerpc/kernel/rtas.c:1932 __do_sys_rtas() warn: potential\n  spectre issue 'args.args' [r] (local cap)\n\nThe 'nargs' and 'nret' locals come directly from a user-supplied\nbuffer and are used as indexes into a small stack-based array and as\ninputs to copy_to_user() after they are subject to bounds checks.\n\nUse array_index_nospec() after the bounds checks to clamp these values\nfor speculative execution.","modified":"2026-03-20T12:37:54.093834Z","published":"2024-09-18T07:12:31.782Z","related":["SUSE-SU-2024:3547-1","SUSE-SU-2024:3551-1","SUSE-SU-2024:3553-1","SUSE-SU-2024:3559-1","SUSE-SU-2024:3561-1","SUSE-SU-2024:3563-1","SUSE-SU-2024:3564-1","SUSE-SU-2024:3565-1","SUSE-SU-2024:3566-1","SUSE-SU-2024:3567-1","SUSE-SU-2024:3569-1","SUSE-SU-2024:3585-1","SUSE-SU-2024:3587-1","SUSE-SU-2024:3591-1","SUSE-SU-2024:3592-1","SUSE-SU-2025:20073-1","SUSE-SU-2025:20077-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46774.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0974d03eb479384466d828d65637814bee6b26d7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1f1feff02e9da0dd0cdb195c428c42b5f9b6c771"},{"type":"WEB","url":"https://git.kernel.org/stable/c/68d8156480940b79227d58865ec5d2947b9384a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a262c2dc833f2fe1bd5c53a4d899e7077d3b1da9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b137af795399d8b657bad1646c18561530f35ed1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d2834ff1d9641a8695a09ea79cd901c7b6d4d05f"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46774.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46774"},{"type":"PACKAGE","url":"https://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"}}],"schema_version":"1.7.5"}