{"id":"CVE-2023-54033","state":"PUBLISHED","title":"bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix a memory leak in the LRU and LRU_PERCPU hash maps\n\nThe LRU and LRU_PERCPU maps allocate a new element on update before locking the\ntarget hash table bucket. Right after that the maps try to lock the bucket.\nIf this fails, then maps return -EBUSY to the caller without releasing the\nallocated element. This makes the element untracked: it doesn't belong to\neither of free lists, and it doesn't belong to the hash table, so can't be\nre-used; this eventually leads to the permanent -ENOMEM on LRU map updates,\nwhich is unexpected. Fix this by returning the element to the local free list\nif bucket locking fails.","publishedAt":"2025-12-24T10:56:00.579Z","updatedAt":"2026-05-11T19:54:07.901Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"1a9e80f757bbb1562d82e350afce2bb2f712cc3d","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"b34ffb0c6d23583830f9327864b9c1f486003305","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/hashtab.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.115","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.31","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.5","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/hashtab.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54033.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54033","state":"PUBLISHED","datePublished":"2025-12-24T10:56:00.579Z","dateUpdated":"2026-05-11T19:54:07.901Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T10:53:46.180Z"},"containers":{"cna":{"title":"bpf: fix a memory leak in the LRU and LRU_PERCPU hash maps","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: fix a memory leak in the LRU and LRU_PERCPU hash maps\n\nThe LRU and LRU_PERCPU maps allocate a new element on update before locking the\ntarget hash table bucket. Right after that the maps try to lock the bucket.\nIf this fails, then maps return -EBUSY to the caller without releasing the\nallocated element. This makes the element untracked: it doesn't belong to\neither of free lists, and it doesn't belong to the hash table, so can't be\nre-used; this eventually leads to the permanent -ENOMEM on LRU map updates,\nwhich is unexpected. Fix this by returning the element to the local free list\nif bucket locking fails."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"1a9e80f757bbb1562d82e350afce2bb2f712cc3d","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e","versionType":"git"},{"version":"20b6cc34ea74b6a84599c1f8a70f3315b56a1883","status":"affected","lessThan":"b34ffb0c6d23583830f9327864b9c1f486003305","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/hashtab.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.115","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.31","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.5","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/hashtab.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/79ea1a12fb9a8275b6e19d4ca625dd872dedcbb9"},{"url":"https://git.kernel.org/stable/c/1a9e80f757bbb1562d82e350afce2bb2f712cc3d"},{"url":"https://git.kernel.org/stable/c/965e9cccbe6b9c7b379908cebcb5e3a47f20dd5e"},{"url":"https://git.kernel.org/stable/c/b34ffb0c6d23583830f9327864b9c1f486003305"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:54:07.901Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.115"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1.31"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}