CVE-2023-52746 xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()
A Spectre v1 gadget in the Linux kernel xfrm compat layer allows malicious users to leak kernel memory contents via speculative execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52746?
CVE-2023-52746 is a low-severity vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-401
Which versions are affected by CVE-2023-52746?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52746?
Apply the vendor's patch.
Is CVE-2023-52746 being exploited?
There is no known exploitation of CVE-2023-52746 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52746, DEBIAN-CVE-2023-52746, GHSA-jg34-cmw8-gw85, UBUNTU-CVE-2023-52746.