libbpf: Reject non-exclusive metadata maps in the signed loader
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0dad5adeb34b6f78a883e8faa6a1c947a240e7c9, Kernel 0fb6c9ed6493b4af01be8bb0a384574eba7df636 and Kernel b6862b6a25c6a925fb0b0e549ee4a52a8d2966fb.
In the Linux kernel, the following vulnerability has been resolved: libbpf: Reject non-exclusive metadata maps in the signed loader The loader verifies map->sha against the metadata hash in its instructions. map->sha is calculated when BPF_OBJ_GET_INFO_BY_FD is called on the frozen map. While the map is frozen, the /signed loader/ must also ensure the map is exclusive, as, without exclusivity (which a hostile host could just omit when loading the loader), another BPF program with map access can mutate the contents afterwards, so the check passes on stale data. With the extra check as part of the signed loader, it now refuses to move on with map->sha validation if the host set it up wrongly.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=fb2b0e290147ba01a53dfd92cf91058c9d2ee254 <0dad5adeb34b6f78a883e8faa6a1c947a240e7c9, >=fb2b0e290147ba01a53dfd92cf91058c9d2ee254 <0fb6c9ed6493b4af01be8bb0a384574eba7df636, >=fb2b0e290147ba01a53dfd92cf91058c9d2ee254 <b6862b6a25c6a925fb0b0e549ee4a52a8d2966fb | 0dad5adeb34b6f78a883e8faa6a1c947a240e7c9, 0fb6c9ed6493b4af01be8bb0a384574eba7df636, b6862b6a25c6a925fb0b0e549ee4a52a8d2966fb |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket