bpf: Fix potential UAF when reading bpf link info
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4c8432a332d4a24dc2742f56062a53d8fad36f53, Kernel 79347e42cfbc9e78872922e8f08a70609c9af82f, Kernel 85cf991c881e7198be32be05a9daa2625390c8b3 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix potential UAF when reading bpf link info In bpf_link_show_fdinfo and bpf_link_get_info_by_fd, link->prog is accessed without holding any locks. If the prog is concurrently replaced via bpf_link_update, the old prog can be freed, leading to a potential UAF issue. Fix this by accessing link->prog under RCU protection to safely fetch the pointer and guarantee its lifetime while reading its fields.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.7, >=0c991ebc8c69d29b7fc44db17075c5aa5253e2ab <4c8432a332d4a24dc2742f56062a53d8fad36f53, >=0c991ebc8c69d29b7fc44db17075c5aa5253e2ab <79347e42cfbc9e78872922e8f08a70609c9af82f, >=0c991ebc8c69d29b7fc44db17075c5aa5253e2ab <85cf991c881e7198be32be05a9daa2625390c8b3, >=0c991ebc8c69d29b7fc44db17075c5aa5253e2ab <863f3ddd0b8ac65abfb50d3be0869268ac0e277b, >=0c991ebc8c69d29b7fc44db17075c5aa5253e2ab <a5c936ac904767fc1d943d40b0308bcb2ae2509b, >=0c991ebc8c69d29b7fc44db17075c5aa5253e2ab <d7d7208e2603b45724b684f4df73904fb347741e | 4c8432a332d4a24dc2742f56062a53d8fad36f53, 79347e42cfbc9e78872922e8f08a70609c9af82f, 85cf991c881e7198be32be05a9daa2625390c8b3, 863f3ddd0b8ac65abfb50d3be0869268ac0e277b, a5c936ac904767fc1d943d40b0308bcb2ae2509b, d7d7208e2603b45724b684f4df73904fb347741e |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket