cve/2024/CVE-2024-56675.md

19 lines
1.2 KiB
Markdown
Raw Normal View History

2025-09-29 16:08:36 +00:00
### [CVE-2024-56675](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-56675)
![](https://img.shields.io/static/v1?label=Product&message=Linux&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9%3C%209245459a992d22fe0e92e988f49db1fec82c184a%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### Description
In the Linux kernel, the following vulnerability has been resolved:bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavorsUprobes always use bpf_prog_run_array_uprobe() under tasks-trace-RCUprotection. But it is possible to attach a non-sleepable BPF program to auprobe, and non-sleepable BPF programs are freed via normal RCU (see__bpf_prog_put_noref()). This leads to UAF of the bpf_prog because a normalRCU grace period does not imply a tasks-trace-RCU grace period.Fix it by explicitly waiting for a tasks-trace-RCU grace period afterremoving the attachment of a bpf_prog to a perf_event.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/cku-heise/euvd-api-doc
- https://github.com/oogasawa/Utility-security