# CVE-2023-52976: efi: fix potential NULL deref in efi_mem_reserve_persistent

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-03-27T16:43:16.596Z
- Modified: 2026-06-17T06:44:02.310Z
- 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:

efi: fix potential NULL deref in efi_mem_reserve_persistent

When iterating on a linked list, a result of memremap is dereferenced
without checking it for NULL.

This patch adds a check that falls back on allocating a new page in
case memremap doesn't succeed.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

[ardb: return -ENOMEM instead of breaking out of the loop]

(As written by CVE List.)

## Affected

- Linux Linux: from 18df7577adae6c6c778bf774b3aebcacbc1fb439 before d92a25627bcdf264183670da73c9a60c0bac327e; from 18df7577adae6c6c778bf774b3aebcacbc1fb439 before 87d4ff18738fd71e7e3c10827c80257da6283697; from 18df7577adae6c6c778bf774b3aebcacbc1fb439 before d8fc0b5fb3e816a4a8684bcd3ed02cbef0fce23c; from 18df7577adae6c6c778bf774b3aebcacbc1fb439 before a2e6a9ff89f13666a1c3ff7195612ab949ea9afc; from 18df7577adae6c6c778bf774b3aebcacbc1fb439 before 966d47e1f27c45507c5df82b2a2157e5a4fd3909; b5961ecad7121fec138ebee7d9eba4863f9dc6e7; from 5.1.16 before 5.2; 5.2 (not affected: before 5.2; from 5.4.232 up to 5.4.*; from 5.10.168 up to 5.10.*; from 5.15.93 up to 5.15.*; from 6.1.11 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.1.16 before 5.4.232; from 5.5 before 5.10.168; from 5.11 before 5.15.93; from 5.16 before 6.1.11; 6.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d92a25627bcdf264183670da73c9a60c0bac327e> (patch)
- <https://git.kernel.org/stable/c/87d4ff18738fd71e7e3c10827c80257da6283697> (patch)
- <https://git.kernel.org/stable/c/d8fc0b5fb3e816a4a8684bcd3ed02cbef0fce23c> (patch)
- <https://git.kernel.org/stable/c/a2e6a9ff89f13666a1c3ff7195612ab949ea9afc> (patch)
- <https://git.kernel.org/stable/c/966d47e1f27c45507c5df82b2a2157e5a4fd3909> (patch)

## Sources

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

---

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