CVE-2026-45927 Details
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.
A vulnerability in the Linux kernel's handling of BPF map hash calculations has been addressed. The issue arose because the function bpf_map_get_info_by_fd calculated and cached the hash of BPF maps without considering whether the map was frozen. This created a time-of-check-to-time-of-use (TOCTOU) vulnerability, allowing userspace to cache a hash, modify the map, and then freeze it, potentially misleading a trusted loader into using an outdated hash while loading altered content. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been fixed in the Linux kernel by modifying the bpf_map_get_info_by_fd function to check if the map is frozen before calculating and caching the hash. If the map is not frozen, the function returns an error, preventing the use of a stale hash.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/7752d36343862323bbeea4ce3adf0ec2ed86e122 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a2c86aa621c22f2a7e26c654f936d65cfff0aa91 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f415e114b58fe02c41191e47f24bdabb438daf72 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.18, < 6.18.14 >= 6.19, < 6.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 27, 2026 | New CVE Received | kernel.org |