# CVE-2026-45927: bpf: Require frozen map for calculating map hash

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.11%, higher than 0% of CVEs (2026-11-30)
- Published: 2026-05-27T12:17:46.284Z
- Modified: 2026-06-25T12:42:18.767Z
- Weaknesses: CWE-367
- Assigned by: Linux

## Description

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

bpf: Require frozen map for calculating map hash

Currently, bpf_map_get_info_by_fd calculates and caches the hash of the
map regardless of the map's frozen state.

This leads to a TOCTOU bug where userspace can call
BPF_OBJ_GET_INFO_BY_FD to cache the hash and then modify the map
contents before freezing.

Therefore, a trusted loader can be tricked into verifying the stale hash
while loading the modified contents.

Fix this by returning -EPERM if the map is not frozen when the hash is
requested. This ensures the hash is only generated for the final,
immutable state of the map.

(As written by CVE List.)

## Affected

- Linux Linux: from ea2e6467ac36bf3d785defc89e58269b15d182f7 before 7752d36343862323bbeea4ce3adf0ec2ed86e122; from ea2e6467ac36bf3d785defc89e58269b15d182f7 before f415e114b58fe02c41191e47f24bdabb438daf72; from ea2e6467ac36bf3d785defc89e58269b15d182f7 before a2c86aa621c22f2a7e26c654f936d65cfff0aa91; 6.18 (not affected: before 6.18; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.18 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/7752d36343862323bbeea4ce3adf0ec2ed86e122> (patch)
- <https://git.kernel.org/stable/c/f415e114b58fe02c41191e47f24bdabb438daf72> (patch)
- <https://git.kernel.org/stable/c/a2c86aa621c22f2a7e26c654f936d65cfff0aa91> (patch)

## Sources

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

---

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