bpf: Preserve pointer spill metadata during half-slot cleanup
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0f9278b22cda6fd2525049930157b79b4036b4ef and Kernel 3a354149bceacadbcf7d7b4766f5ef26a85892ab.
In the Linux kernel, the following vulnerability has been resolved: bpf: Preserve pointer spill metadata during half-slot cleanup __clean_func_state() cleans dead stack slots in 4-byte halves. When the high half of a STACK_SPILL slot is dead and the low half remains live, cleanup converts the live low half to STACK_MISC or STACK_ZERO and clears the saved spilled_ptr metadata. That conversion is safe only for scalar spills. For a pointer spill, this metadata clear lets a later 32-bit fill from the still-live half avoid the normal non-scalar register-fill check and be treated as an ordinary scalar stack read. Leave non-scalar spill slots intact in this half-live shape. This is conservative for pruning and preserves the existing check_stack_read_fixed_off() rejection path for partial fills from pointer spills.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =7.1, >=be23266b4a08540aa43d8503a2ea10247c8daebe <0f9278b22cda6fd2525049930157b79b4036b4ef, >=be23266b4a08540aa43d8503a2ea10247c8daebe <3a354149bceacadbcf7d7b4766f5ef26a85892ab | 0f9278b22cda6fd2525049930157b79b4036b4ef, 3a354149bceacadbcf7d7b4766f5ef26a85892ab |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket