CVE-2023-54033

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

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 to before 79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9Affected
  • 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 to before 1a9e80f757bbb1562d82e350afce2bb2f712cc3dAffected
  • 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 to before 965e9cccbe6b9c7b379908cebcb5e3a47f20dd5eAffected
  • 20b6cc34ea74b6a84599c1f8a70f3315b56a1883 to before b34ffb0c6d23583830f9327864b9c1f486003305Affected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.15.115 through 5.15.*Not affected
  • 6.1.31 through 6.1.*Not affected
  • 6.3.5 through 6.3.*Not affected
  • 6.4 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.