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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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-02)
- Published: 2024-08-21T06:10:33.043Z
- Modified: 2026-06-17T06:43:52.630Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before ee5763ef829bd923033510de6d1df7c73f085e4b; from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before 32313c11bdc8a02c577abaf865be3664ab30410a; from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before ffef77794fb5f1245c3249b86342bad2299accb5; from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before ae2a9dcc8caa60b1e14671294e5ec902ea5d1dfd; from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before eb0421d90f916dffe96b4c049ddf01c0c50620d2; from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before 6646d769fdb0ce4318ef9afd127f8526d1ca8393; from 74c5b31c6618f01079212332b2e5f6c42f2d6307 before a769b05eeed7accc4019a1ed9799dd72067f1ce8; 3.0 (not affected: before 3.0; from 4.14.304 up to 4.14.*; from 4.19.271 up to 4.19.*; from 5.4.230 up to 5.4.*; from 5.10.165 up to 5.10.*; from 5.15.90 up to 5.15.*; from 6.1.8 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.0 before 4.14.304; from 4.15 before 4.19.271; from 4.20 before 5.4.230; from 5.5 before 5.10.165; from 5.11 before 5.15.90; from 5.16 before 6.1.8; 6.2

## References

- <https://git.kernel.org/stable/c/ee5763ef829bd923033510de6d1df7c73f085e4b> (patch)
- <https://git.kernel.org/stable/c/32313c11bdc8a02c577abaf865be3664ab30410a> (patch)
- <https://git.kernel.org/stable/c/ffef77794fb5f1245c3249b86342bad2299accb5> (patch)
- <https://git.kernel.org/stable/c/ae2a9dcc8caa60b1e14671294e5ec902ea5d1dfd> (patch)
- <https://git.kernel.org/stable/c/eb0421d90f916dffe96b4c049ddf01c0c50620d2> (patch)
- <https://git.kernel.org/stable/c/6646d769fdb0ce4318ef9afd127f8526d1ca8393> (patch)
- <https://git.kernel.org/stable/c/a769b05eeed7accc4019a1ed9799dd72067f1ce8> (patch)

## Sources

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

---

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