mirror of
https://github.com/0xMarcio/cve.git
synced 2025-11-30 18:56:19 +00:00
19 lines
1.2 KiB
Markdown
19 lines
1.2 KiB
Markdown
|
|
### [CVE-2024-56675](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-56675)
|
||
|
|

|
||
|
|

|
||
|
|

|
||
|
|
|
||
|
|
### 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
|
||
|
|
|