{"id":"CVE-2023-52746","state":"PUBLISHED","title":"xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()","description":"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 > 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) < compat_policy[type].len) {\n\narray_index_nospec() can be used to prevent leaking\ncontent of kernel memory to malicious users.","publishedAt":"2024-05-21T15:23:07.255Z","updatedAt":"2026-05-11T19:32:24.038Z","severity":{"score":2.5,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"a893cc644812728e86e9aff517fd5698812ecef0","versionType":"git"},{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"5dc688fae6b7be9dbbf5304a3d2520d038e06db5","versionType":"git"},{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"419674224390fca298020fc0751a20812f84b12d","versionType":"git"},{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"b6ee896385380aa621102e8ea402ba12db1cabff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_compat.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.168","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.94","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.12","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_compat.c"]}],"references":["https://git.kernel.org/stable/c/a893cc644812728e86e9aff517fd5698812ecef0","https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5","https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d","https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52746.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52746","state":"PUBLISHED","datePublished":"2024-05-21T15:23:07.255Z","dateUpdated":"2026-05-11T19:32:24.038Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.233Z"},"containers":{"cna":{"title":"xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()","descriptions":[{"lang":"en","value":"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 > 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) < compat_policy[type].len) {\n\narray_index_nospec() can be used to prevent leaking\ncontent of kernel memory to malicious users."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"a893cc644812728e86e9aff517fd5698812ecef0","versionType":"git"},{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"5dc688fae6b7be9dbbf5304a3d2520d038e06db5","versionType":"git"},{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"419674224390fca298020fc0751a20812f84b12d","versionType":"git"},{"version":"5106f4a8acff480e244300bc5097c0ad7048c3a2","status":"affected","lessThan":"b6ee896385380aa621102e8ea402ba12db1cabff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_compat.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.168","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.94","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.12","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xfrm/xfrm_compat.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a893cc644812728e86e9aff517fd5698812ecef0"},{"url":"https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5"},{"url":"https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d"},{"url":"https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:32:24.038Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.168"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.94"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.1.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":2.5,"attackVector":"LOCAL","baseSeverity":"LOW","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"HIGH","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-05-29T17:50:37.070696Z","id":"CVE-2023-52746","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-noinfo Not enough information"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-07T15:13:49.462Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/a893cc644812728e86e9aff517fd5698812ecef0","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:36.022Z"}}]}}}