{"id":"CVE-2026-45927","published":"2026-05-27T12:17:46Z","modified":"2026-05-27T12:17:46Z","title":"bpf: Require frozen map for calculating map hash","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Require frozen map for calculating map hash\n\nCurrently, bpf_map_get_info_by_fd calculates and caches the hash of the\nmap regardless of the map's frozen state.\n\nThis leads to a TOCTOU bug where userspace can call\nBPF_OBJ_GET_INFO_BY_FD to cache the hash and then modify the map\ncontents before freezing.\n\nTherefore, a trusted loader can be tricked into verifying the stale hash\nwhile loading the modified contents.\n\nFix this by returning -EPERM if the map is not frozen when the hash is\nrequested. This ensures the hash is only generated for the final,\nimmutable state of the map.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00092,"percentile":0.00497,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7752d36343862323bbeea4ce3adf0ec2ed86e122","tags":[]},{"url":"https://git.kernel.org/stable/c/f415e114b58fe02c41191e47f24bdabb438daf72","tags":[]},{"url":"https://git.kernel.org/stable/c/a2c86aa621c22f2a7e26c654f936d65cfff0aa91","tags":[]}],"priority":{"score":0.1,"factors":[{"name":"EPSS percentile","points":0.1}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ea2e6467ac36bf3d785defc89e58269b15d182f7, < 7752d36343862323bbeea4ce3adf0ec2ed86e122",">= ea2e6467ac36bf3d785defc89e58269b15d182f7, < f415e114b58fe02c41191e47f24bdabb438daf72",">= ea2e6467ac36bf3d785defc89e58269b15d182f7, < a2c86aa621c22f2a7e26c654f936d65cfff0aa91"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-32393","exploited":false,"provenance":"source"}}