5.5medium
efi: fix potential NULL deref in efi_mem_reserve_persistent
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.28% (higher than 22% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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]
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| 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 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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]
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: efi: se corrige una posible desreferenciación NULL en efi_mem_reserve_persistent. Al iterar en una lista enlazada, se desreferencia un resultado de memremap sin comprobar si es NULL. Este parche añade una comprobación que recurre a la asignación de una nueva página en caso de que memremap no tenga éxito. Encontrado por el Centro de Verificación de Linux (linuxtesting.org) con SVACE. [ardb: devuelve -ENOMEM en lugar de salir del bucle]
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52976 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2023-52976 changed 2026-06-17 | Public domain |