{"schema_version":"1.9.0","id":"CVE-2024-53228","published":"2024-12-27T13:50:16.843Z","modified":"2026-08-12T03:51:34.791098413Z","related":["USN-7276-1","USN-7277-1"],"summary":"riscv: kvm: Fix out-of-bounds array access","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: kvm: Fix out-of-bounds array access\n\nIn kvm_riscv_vcpu_sbi_init() the entry->ext_idx can contain an\nout-of-bound index. This is used as a special marker for the base\nextensions, that cannot be disabled. However, when traversing the\nextensions, that special marker is not checked prior indexing the\narray.\n\nAdd an out-of-bounds check to the function.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"56d8a385b60556019ecb45d6098830c9ef6a13e0"},{"fixed":"3c49e1084a5df99807fc43dd318c491e6cbaa168"},{"fixed":"b1af648f0d610665c956ea4604d9f797e5c7e991"},{"fixed":"332fa4a802b16ccb727199da685294f85f9880cb"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53228.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.11.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"6.12.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53228.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/332fa4a802b16ccb727199da685294f85f9880cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c49e1084a5df99807fc43dd318c491e6cbaa168"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b1af648f0d610665c956ea4604d9f797e5c7e991"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53228.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53228"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53228.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}