Entreprise d'experts en Sécurité Informatique : Audits et conseils en cybersécurité
Entreprise française de cybersécurité depuis 2004
☎ 03 60 47 09 81 - info@securiteinfo.com


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

- https://github.com/w4zu/Debian_security