Bug 2355514 (CVE-2023-52976) - CVE-2023-52976 kernel: efi: fix potential NULL deref in efi_mem_reserve_persistent
Summary: CVE-2023-52976 kernel: efi: fix potential NULL deref in efi_mem_reserve_persi...
Keywords:
Status: NEW
Alias: CVE-2023-52976
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-27 17:05 UTC by OSIDB Bzimport
Modified: 2025-05-07 16:01 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-27 17:05:06 UTC
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]

Comment 5 Avinash Hanwate 2025-03-28 04:32:11 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025032704-CVE-2023-52976-eda3@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.