# CVE-2025-68355: bpf: Fix exclusive map memory leak

- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-12-24T10:32:45.505Z
- Modified: 2026-10-13T11:10:00.203Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix exclusive map memory leak

When excl_prog_hash is 0 and excl_prog_hash_size is non-zero, the map also
needs to be freed. Otherwise, the map memory will not be reclaimed, just
like the memory leak problem reported by syzbot [1].

syzbot reported:
BUG: memory leak
  backtrace (crc 7b9fb9b4):
    map_create+0x322/0x11e0 kernel/bpf/syscall.c:1512
    __sys_bpf+0x3556/0x3610 kernel/bpf/syscall.c:6131

(As written by CVE List.)

## Affected

- Linux Linux: from baefdbdf6812e120c9fba9cfb101d3656f478026 before f0022551745d72fc0e7bc8601234d690dee2178d; from baefdbdf6812e120c9fba9cfb101d3656f478026 before 688b745401ab16e2e1a3b504863f0a45fd345638; 6.18 (not affected: before 6.18; from 6.18.2 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/f0022551745d72fc0e7bc8601234d690dee2178d>
- <https://git.kernel.org/stable/c/688b745401ab16e2e1a3b504863f0a45fd345638>

## Sources

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

---

Page: https://cve.day/CVE-2025-68355 · Whole record: https://cve.day/CVE-2025-68355.json · Rebuilt by cve.day 2026-11-25T22:59:09.865Z
