{"id":"CVE-2023-52746","summary":"xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()\n\n  int type = nla_type(nla);\n\n  if (type \u003e XFRMA_MAX) {\n            return -EOPNOTSUPP;\n  }\n\n@type is then used as an array index and can be used\nas a Spectre v1 gadget.\n\n  if (nla_len(nla) \u003c compat_policy[type].len) {\n\narray_index_nospec() can be used to prevent leaking\ncontent of kernel memory to malicious users.","modified":"2026-04-02T09:43:17.083442Z","published":"2024-05-21T15:23:07.255Z","related":["SUSE-SU-2024:2008-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2190-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52746.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a893cc644812728e86e9aff517fd5698812ecef0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52746.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52746"},{"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":"5106f4a8acff480e244300bc5097c0ad7048c3a2"},{"fixed":"a893cc644812728e86e9aff517fd5698812ecef0"},{"fixed":"5dc688fae6b7be9dbbf5304a3d2520d038e06db5"},{"fixed":"419674224390fca298020fc0751a20812f84b12d"},{"fixed":"b6ee896385380aa621102e8ea402ba12db1cabff"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52746.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}