CVE-2023-54033

bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps

published December 24, 2025

CVSS
—
EPSS
0%
Percentile
7.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00186 · 7.8th percentile
Published
2025-12-24T10:56Z
EPSS history
Timeline
  • 24 DEC 10:56Z
    bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps
    cvelistv5