CVE-2023-54033
Unknown Unknown - Not Provided
Memory Leak in Linux Kernel BPF LRU Hash Maps

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps The LRU and LRU_PERCPU maps allocate a new element on update before locking the target hash table bucket. Right after that the maps try to lock the bucket. If this fails, then maps return -EBUSY to the caller without releasing the allocated element. This makes the element untracked: it doesn't belong to either of free lists, and it doesn't belong to the hash table, so can't be re-used; this eventually leads to the permanent -ENOMEM on LRU map updates, which is unexpected. Fix this by returning the element to the local free list if bucket locking fails.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-05-07
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel *
linux kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a memory leak in the Linux kernel's BPF subsystem, specifically in the LRU and LRU_PERCPU hash maps. When these maps update, they allocate a new element before locking the target hash table bucket. If locking the bucket fails, the allocated element is not released and becomes untracked, meaning it is not part of any free list or the hash table. This causes the element to be unusable and eventually leads to permanent memory exhaustion (-ENOMEM) on LRU map updates.


How can this vulnerability impact me? :

The impact of this vulnerability is that it can cause a permanent memory leak in the Linux kernel's LRU map updates. This memory leak can lead to the system running out of memory (-ENOMEM errors), which may cause failures in applications or services relying on these maps, potentially leading to system instability or degraded performance.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, update your Linux kernel to a version that includes the fix for the memory leak in the LRU and LRU_PERCPU hash maps. This fix ensures that allocated elements are properly released if bucket locking fails, preventing permanent -ENOMEM errors on LRU map updates.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart