CVE-2023-52893 gsmi: fix null-deref in gsmi_get_variable

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel gsmi driver causes a system panic when accessing EFI variables without attributes.

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-52893?

CVE-2023-52893 is a medium-severity vulnerability in Linux kernel, published on 21 Aug 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:

gsmi: fix null-deref in gsmi_get_variable

We can get EFI variables without fetching the attribute, so we must allow for that in gsmi.

commit 859748255b43 ("efi: pstore: Omit efivars caching EFI varstore access layer") added a new get_variable call with attr=NULL, which triggers panic in gsmi.

Weakness: CWE-476

Which versions are affected by CVE-2023-52893?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-52893?

Apply the vendor's patch.

Is CVE-2023-52893 being exploited?

There is no known exploitation of CVE-2023-52893 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-52893, DEBIAN-CVE-2023-52893, GHSA-5c27-9gp6-68q5, UBUNTU-CVE-2023-52893.

Is CVE-2023-52893 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free