# CVE-2023-54033: bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps

- Severity: not scored yet
- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-12-24T10:56:00.579Z
- Modified: 2026-06-17T06:46:34.477Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 before 79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9; from 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 before 1a9e80f757bbb1562d82e350afce2bb2f712cc3d; from 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 before 965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e; from 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 before b34ffb0c6d23583830f9327864b9c1f486003305; 5.11 (not affected: before 5.11; from 5.15.115 up to 5.15.*; from 6.1.31 up to 6.1.*; from 6.3.5 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9>
- <https://git.kernel.org/stable/c/1a9e80f757bbb1562d82e350afce2bb2f712cc3d>
- <https://git.kernel.org/stable/c/965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e>
- <https://git.kernel.org/stable/c/b34ffb0c6d23583830f9327864b9c1f486003305>

## Sources

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

---

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