# CVE-2023-52746: xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()

- Severity: Low 2.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T15:23:07.255Z
- Modified: 2026-06-17T06:43:29.273Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()

  int type = nla_type(nla);

  if (type > XFRMA_MAX) {
            return -EOPNOTSUPP;
  }

@type is then used as an array index and can be used
as a Spectre v1 gadget.

  if (nla_len(nla) < compat_policy[type].len) {

array_index_nospec() can be used to prevent leaking
content of kernel memory to malicious users.

(As written by CVE List.)

## Affected

- Linux Linux: from 5106f4a8acff480e244300bc5097c0ad7048c3a2 before a893cc644812728e86e9aff517fd5698812ecef0; from 5106f4a8acff480e244300bc5097c0ad7048c3a2 before 5dc688fae6b7be9dbbf5304a3d2520d038e06db5; from 5106f4a8acff480e244300bc5097c0ad7048c3a2 before 419674224390fca298020fc0751a20812f84b12d; from 5106f4a8acff480e244300bc5097c0ad7048c3a2 before b6ee896385380aa621102e8ea402ba12db1cabff; 5.10 (not affected: before 5.10; from 5.10.168 up to 5.10.*; from 5.15.94 up to 5.15.*; from 6.1.12 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.10 before 5.10.168; from 5.11 before 5.15.94; from 5.16 before 6.1.12; 6.2

## References

- <https://git.kernel.org/stable/c/a893cc644812728e86e9aff517fd5698812ecef0> (patch)
- <https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5> (patch)
- <https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d> (patch)
- <https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff> (patch)

## Sources

- CVE List: [CVE-2023-52746](https://www.cve.org/CVERecord?id=CVE-2023-52746), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52746](https://nvd.nist.gov/vuln/detail/CVE-2023-52746), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52746 · Whole record: https://cve.day/CVE-2023-52746.json · Rebuilt by cve.day 2026-11-25T22:58:33.999Z
